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