enum color : int { red = -3, green, blue } Console.Write( (int) color.red + ", "); Console.Write( (int) color.green + ", "); Console.Write( (int) color.blue );
enum color: int { red, green, blue = 5, cyan, magenta = 10, yellow } Console.Write( (int) color.green + ", " ); Console.Write( (int) color.yellow );
int a = 10; int b = 20; int c = 30; enum color: byte { red = a, green = b, blue = c }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.