As an example from this site: http://www.c-sharpcorner.com/UploadFile/ankithakur/ExceptionHandlingWCF12282007072617AM/ExceptionHandlingWCF.aspx
[DataContract]
public class MyFaultException
{
private string _reason;
[DataMember]
public string Reason
{
get { return _reason; }
set { _reason = value; }
}
}
Is there any reason why is that approach is favored, considering that WCF started in .NET 3.0 and C# 3 already has automatic property. Why it's not written like the following?
[DataContract]
public class MyFaultException
{
[DataMember]
public string Reason { get; set; }
}