why fields not serializable via xml serializer, in c#, whereas properties are? know properties methods, don't see why should make difference. know answer this?
thanks much!
fields serializable :
xml serialization serializes the public fields , properties of object, or parameters , return values of methods, xml stream conforms specific xml schema definition language (xsd) document. xml serialization results in typed classes public properties , fields converted xml. system.xml.serialization contains classes necessary serializing , deserializing xml.
from msdn
Comments
Post a Comment