Reputation: 1387
Is there any way in VS or Resharper to generate properties and include attributes above each property? Basically I am making a web service that requires a lot of members declared with [DataMember] and it would be nice to have it generate that when generating the property itself (when using resharper, for example).
Upvotes: 1
Views: 128
Reputation: 634
I think that Resharper templates is what you're looking for. You can create your own template for property with [DataMember]
attribute and call it something like propdata
.
Upvotes: 2