Enumeration in C#.NET,VB.NET
Enumeration is a great user defined data type in C#.Net and VB.NET. It is very useful in code readability. It greatly increases the readability of code. here is the example of the enumeration that contains the weekdays. In C#.NET… public enum weekdays{Sunday=1,Monday=2,Tuesday=3,Wednesday=4,Thursday=5,Friday=6,Saturday=7 } In VB.NET… public enum weekdaysSunday=1,Monday=2,Tuesday=3,Wednesday=4,Thursday=5,Friday=6,Saturday=7, end enum here is the code that