Enums are value types, which means they contain their own value, can't inherit or be inherited from, and assignment copies the value of one enum to another.

The default underlying type of the enumeration elements is integer type. By default, the value of first enumerator is 0, and the value of each successive enumerator is increased by 1.

    using System;
    // enum_1.cs
     public enum Teams 
     {
     Badale=1, 
     Raiders,
     TASCA, 
     Elgin,
    Sycamore, 
    Connector,
    Panther
    };

class Test 
{
static void Main() 
{
//Teams d = Teams.Badale;
int x = (int)Teams.Raiders;
int y = (int)Teams.Panther;
Console.WriteLine("Raiders = {0}", x);
Console.WriteLine("Panther = {0}", y);


}
}
    
The enum keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list. Every enumeration type has an underlying type, which can be any integral type except char.  For example
    using System;
// enum_2.cs
class enumTest 
{
public  enum Teams 
{
Bdale=1, 
Raiders,
TASCA, 
Elgin,
Sycamore, 
Connector,
Panther
};
  public void enum_meth( Teams x)
  {
        switch (x)
	      {
	         case Teams.Bdale:
	            Console.WriteLine("Bdale.is present");
	            break;
	         case Teams.Raiders:
	            Console.WriteLine("Raiders");
	            break;
	         case Teams.TASCA:
	            Console.WriteLine("TASCA is present.");
	            break;
	          case Teams.Elgin:
		    Console.WriteLine("Elgin is present.");
	            break;
	           case Teams.Sycamore:
		    Console.WriteLine("Sycamore is present.");
	            break;
	           case Teams.Connector:
		    Console.WriteLine("Connector is present.");
		    break;
		   case Teams.Panther:
		    Console.WriteLine("Panther is present.");
	            break;
	            default:
		    Console.WriteLine("Invalid selection.");
		                      break;

	      }
    }

    
}
class test 
{
static void Main()
{
enumTest e = new enumTest();
Console.Write("Enter Team Name :" );
string str = Console.ReadLine();

if (str=="Bdale"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="Raiders"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="TASCA"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="Elgin"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="Sycamore"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="Connector"){ e.enum_meth(enumTest.Teams.Bdale);}
if (str=="Panther"){ e.enum_meth(enumTest.Teams.Bdale);}
}
}