C# enum
enum F
{
// Give each element a custom value
Foo = 1, Bar = 2, Baz = 3, Quux = 0
}enum Season
{
Spring,
Summer,
Autumn,
Winter
}
enum Season
{
Spring,
Summer,
Autumn,
Winter
}enum WeekDays
{
Monday = 0,
Tuesday =1,
Wednesday = 2,
Thursday = 3,
Friday = 4,
Saturday =5,
Sunday = 6
}
Console.WriteLine(WeekDays.Friday);
Console.WriteLine((int)WeekDays.Friday);
Also in C#:
- c# switct case
- get number of sundays in a month c#
- c# expandoobject indexer
- month number to text in c#
- unity change tag in script
- console application in c# ms crm
- c# make request to rest api
- new command - latex
- transform.translate unity
- defualtsize UWP c#
- how to declare a string c#
- C# invoke
- C# enum
- see if two string arrays are equal c#
- get all child gameObject of gameObject C#
- c# length of array
- how to make a pause feautre in unity
- fibonacci series using recursion
- for each property in object c#
- asp.net core mvc not triggering client side validation
- c# console delay
- c# select first value from list
- C# Cast double to float
- c# read a webpage data