P
Peter Cresswell
Hello everyone,
I would like to serialize an object to XML. Currently my code will serialize
all of the public properties that are value types, but not my public
properties that have get accessors. e.g:
public class MyObject
{
public string name; // This is serialized OK
public int Two
{
get { return 1+1;} // This does not serialize
}
}
Is it possible to serialize these properties too? If so could you please
tell me how (or point me in the direction of a doc that explains it).
I'm fairly new to working with the Xml parts of the framework so I'm sorry
if I've missed something obvious.
Thanks very much!
Peter Cresswell
(e-mail address removed)
I would like to serialize an object to XML. Currently my code will serialize
all of the public properties that are value types, but not my public
properties that have get accessors. e.g:
public class MyObject
{
public string name; // This is serialized OK
public int Two
{
get { return 1+1;} // This does not serialize
}
}
Is it possible to serialize these properties too? If so could you please
tell me how (or point me in the direction of a doc that explains it).
I'm fairly new to working with the Xml parts of the framework so I'm sorry
if I've missed something obvious.
Thanks very much!
Peter Cresswell
(e-mail address removed)