enum in c#

Enum in c# programming language-: An enumeration is a special kind of value type consisting of a list of named constants. To create one,we can use the enum keyword followed by a name and a code block containing a comma-separated list of constant elements. enum State { Run, Wait, Stop }; This enumeration type can be … Read more