Tuesday, June 15, 2010

Exposing Enum Types From WCF

There are many cases where you would want to expose enum types from a WCF service, so how do you do this?

Simply create a data contract and mark the values with the EnumMember attribute and thats it

public enum MyEnumName
XML = 2

No comments:

Post a Comment