C# Get all enum code example Example: c# get all enum values var values = Enum.GetValues(typeof(Foos));