is enum [Flags] are supported for WCF ?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

is enum [Flags] are supported for WCF ?

Postby Sesztak » Wed Sep 14, 2016 10:40 am

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

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron