HomePosts tagged โ€œEnumโ€

Enum

Showing 1 - 11 of 11 results
You can easily enumerate an enum in C# using the Enum.GetValues static method which returns the array. How to enumerate...
You can get the total number of items defined in an enum in C# using the combination of the Enum.GetNames...
Want to know what is the use of Tilde (~) symbol in C# especially when using enum definition?. Letโ€™s have...
There are times when you want to get the attributes of the enum values from your C# code for some...
Below is a sample code snippet demonstrating on casting an integer to enum in C#. How to cast an integer...
Ever wondered what is Flags attribute in C#? . Hereโ€™s the post that explains with an example on what is...
Below is a sample code snippet demonstrating how to convert a string Eg: โ€œBlueโ€ to Enum value . How to...
You might encounter an scenario where you have to find out if the integer value that is passed needs to...
The enumeration in C# lets the developers to define a limited set of known values. For example , I can...
This is a really simple one . Below is a simple example of an enum called โ€œDesignationโ€ defined with the...
Sometimes , it may be necessary for the C# developers to loop through or iterate over all the Enum Values...

Categories

Archives