WCF: DataMember attribute on property vs. member

Posted by Julien Poulin on Stack Overflow See other posts from Stack Overflow or by Julien Poulin
Published on 2009-02-17T13:26:39Z Indexed on 2010/05/21 3:10 UTC
Read the original article Hit count: 350

Filed under:
|
|

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 {...}
}

?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about .NET