Is DataContract
attribute is deprecated in ASP.NET 4.0 WCF ? I can see only DataContractFormat
attribute.
I can't apply DataContractFormat attribute over struct.
example
[DataContractFormat]
public struct Contact
{
public string firstName;
public string lastName;
}
It throws an error saying that DataContractFormat artribute can only be used on class, interface and methods.