Page 1 of 1

is enum [Flags] are supported for WCF ?

Posted: Wed Sep 14, 2016 10:40 am
by Sesztak
Dear JS-Support,
is enum [Flags] are supported for WCF ?

e.g.:
[DataContract]
[Flags]
public enum MyEnum
{
[EnumMember]
First =1 ,
[EnumMember]
Second =2 ,
[EnumMember]
Third = 4
}

We need it as it is essential to OR (|) operation to enums, like:
var compositeResult = Second | Third ; // important: for Enum flags you need 1-2-4-8-16 ... value at client side as well, not default: 0-1-2-3-4

Thanks for your kind reply in advance,
Best Regards,
P├ęter