Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 23, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/0b5b944b4b68a062d71e3b5217413bfb to your computer and use it in GitHub Desktop.
Save lgolubyev/0b5b944b4b68a062d71e3b5217413bfb to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
int snakes = 14;
Console.WriteLine((Reptile)snakes);
}
}
[Flags]
enum Reptile
{
BlackMamba = 2,
CottonMouth = 4,
Wiper = 8,
Crocodile = 16,
Aligator = 32
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment