C# start enumeration code example
Example 1: public enum c#
enum Season
{
Spring,
Summer,
Autumn,
Winter
}
Example 2: c# enum syntax
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
enum Season
{
Spring,
Summer,
Autumn,
Winter
}
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}