emun c# code example
Example 1: public enum c#
enum Season
{
Spring,
Summer,
Autumn,
Winter
}
Example 2: c# enum default
enum F
{
// Give each element a custom value
Foo = 1, Bar = 2, Baz = 3, Quux = 0
}
enum Season
{
Spring,
Summer,
Autumn,
Winter
}
enum F
{
// Give each element a custom value
Foo = 1, Bar = 2, Baz = 3, Quux = 0
}