set type to an enum c# code example
Example 1: c# global enumerator
public class ClassName
{
// ... Other class members etc.
}
// Enum declared outside of the class
public enum Direction
{
north, south, east, west
}
Example 2: C# enum
enum CellphoneBrand {
Samsung,
Apple,
LG,
Nokia,
Huawei,
Motorola
}