Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created March 7, 2015 08:14
Show Gist options
  • Save ufcpp/cf67787bd0ee975071bd to your computer and use it in GitHub Desktop.
Save ufcpp/cf67787bd0ee975071bd to your computer and use it in GitHub Desktop.
using static for enum
using System;
using static X;
[Flags]
enum X
{
A = 1,
B = 2,
C = 4,
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine(A | B); // X.A | X. B
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment