What is the exact advantages of the DataMember attribute? What is the difference between a serialized Field and a Field with the DataMember attribute. A friend told there is some performance wise gains?
EDIT: Consider this example:
[Serializable]
public class MyObject {
public int num;
public String str;
}
public class MyObject {
[DataMember]
public int num;
[DataMember]
public String str;
}