No attribute for Enum values is genereted in client side when code is generated using proxy generator in client side. how can i make them also in client side.
eg
In service or web service
[DataContract] punlic enum Periods { [Description("2 months")] [EnumMember] TwoMonths, }
(or)
[DataContract] punlic enum Periods { [XMLEnum(Value = "2 months")] [EnumMember] TwoMonths, }
but in client side (consumer - consuming web service)
it generates only
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.1433")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://namespace" + "")] public enum Periods{
/// <remarks/>
TwoMonths,
}
how can i access description attribute from web service?