I think one of the neat approaches would be to use class properties which you can set and make readonly if you want once set then no other class modifies the value.
Below is Class1 and Class2:
public class Class1
{
public Class1( String myXml )
{
Class2 class2 = new Class2();
class2.MyXml = myXml;
}
}
public class Class2
{
public String MyXml
{
get;set;
}
}
More on properties? there goes it:
http://msdn.microsoft.com/en-us/library/x9fsa0sw%28v=vs.80%29.aspx[
^]
Happy coding,
Morgs