|
by luisabreu via LA.NET [EN] on 9/7/2007 8:55:34 AM
According to the C# specification, an enum is "a distinct set of value types that declares a set of named constants.". When you program in C#, you declare an enum through the enum keyword. Here's a quick example: public enum Permission{ Read, Write} When you build this code, you'll get the following IL: .class public auto ansi sealed E extends [mscorlib]System.Enum{ .field public static literal valuetype Livro.E
... [ read more ]
|
|