Generating classes from Xsd files using Linq To Xsd is great. However, I would like to know if it is possible to somehow specify in the Xsd that attributes be applied to classes and their properties. To be specific, I am looking for a way to have Linq To Xsd generate classes with a System.Runtime.Serialization.DataContractAttribute appliedĀ and properties with the System.Runtime.Serialization.DataMemberAttribute applied. Something similar to the following... [System.Runtime.Serialization.DataContract]
Read More...