Lecture overview -- Keyboard shortcut: 'u'  Previous page: Simple types -- Keyboard shortcut: 'p'  Next page: Non-simple types -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Introduction to C# - slide 8 : 43

Enumerations types
Enumeration types are similar to each other in C and C#
  public enum Ranking {Bad, OK, Good}

  public enum OnOff: byte{
    On = 1, Off = 0}
ex.cs
Demonstration of enumeration types in C#.
output
Output from the program that demonstrates enumeration types.
Go to exercise
ECTS Grades
Go to exercise
Use of Enumeration types