Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flag enum
Message
De
17/11/2007 08:45:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/11/2007 08:22:51
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01269641
Message ID:
01269643
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform