[DataContract]
public class SearchResults
{
[DataMember]
public List<SearchDetail> PList { get; set; }
[DataMemberAttribute]
public int Count { get; set; }
}
The metadata for DataMember
and DataMemberAttribute
are same.
Is 'DataMember' just an alias of the other? Which one should we be using? (If possible please provide a link)