WCF: DataMember attribute on property vs. member
- by Julien Poulin
In wcf, what is the difference between applying the DataMember attribute on a property
private int m_SomeValue;
[DataMember]
public int SomeValue {
get {...}
set {...}
}
instead of a member variable
[DataMember]
private int m_SomeValue;
public int SomeValue {
get {...}
set {...}
}
?