c# - Is there a way to decorate multiple properties with DataMember in a data contract in WCF? -
c# - Is there a way to decorate multiple properties with DataMember in a data contract in WCF? -
i've got basic wcf service. i've split out info contracts , 1 of them class big amount of public properties. if want create these properties available client i'm assuming of these need have [datamember]. so, there's big number of these properties, there way of mass decorating them [datamember]? like:
[datamember] ( public string title { get; set; } public guid id { get; set; } public description { get; set; } //more properties... )
i've ever seen:
[datamember] public string title { get; set; } [datamember] public guid id { get; set; } [datamember] public description { get; set; }
no, unfortunately, it's not possible mark grouping of properties attribute.
c# wcf datacontract datamember
Comments
Post a Comment