Enumerations:Initialization
public enum Values
{
A = 1,
B = 2,
C = A + B,
D = A * C + 33
}
public class EnumerationsInitialization2
{
public static void Member(Values value)
{
// do some processing here
}
public static void Main()
{
Values value = 0;
Member(value);
}
}
Related examples in the same category