Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flag enum
Message
From
17/11/2007 08:45:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/11/2007 08:22:51
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01269641
Message ID:
01269643
Views:
8
>Hi,
>I am using [flag] enum to store combination of multiple value. How could I test if it contains certain value?
>
>Thank you

if ((flag & (int)myEnum.myValue) != 0)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform