[DataContract]
public class MyClass
{
[DataMember]
private string PrivateFiled;
// Other properties elided.
...
}
How is it that the PrivateFiled
is getting set by the DataContractSerializer
when serialized/deserialized, how is it able to access the private variable. What is happening under the hood? What are the concepts behind this. Also please point to some good sources on this.