Enumerations : Enum : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Enum »

 

Enumerations








    


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);
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Enum