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

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -