Skip to main content

Example Enum Flags in C# from System.Configuration.

// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Configuration.dll

namespace System.Configuration
{
    /// <summary>Specifies the options to apply to a property.</summary>
    [Flags]
    public enum ConfigurationPropertyOptions
    {
        None = 0,
        IsDefaultCollection = 1,
        IsRequired = 2,
        IsKey = 4,
        IsTypeStringTransformationRequired = 8,
        IsAssemblyStringTransformationRequired = 16, // 0x00000010
        IsVersionCheckRequired = 32, // 0x00000020
    }
}