CSharpFeeds - All your C# feeds in one place.

Friday, September 07, 2007

C#: understanding enums

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 ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us