c# enum variable code example
Example 1: c# enum syntax
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
Example 2: C# enum
enum CellphoneBrand {
Samsung,
Apple,
LG,
Nokia,
Huawei,
Motorola
}