dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Monday Mar 18th 2019 by Srinath M S

Language: .NET, Expertise: Intermediate - See an easy way to enumerate all the values.

See an easy way to enumerate all the values.

public enum WorkTypes
{
Remote = 0,
Office = 1,
Exempted = 2
}
foreach (WorkTypes workType in Enum.GetValues(typeof(WorkTypes)))
Console.WriteLine(workType);
Home
Mobile Site | Full Site