Topics
Csharp Enum
About this topic: Articles tagged __TAG__
Showing 6 articlesRelated tags
Topics
Articles
Showing 6 articles
How-tos
How to Convert Enum to String in C#
Convert an enum value to its member name with ToString(), or use DescriptionAttribute and a switch mapping for custom display labels.
↗
How-tos
How to Convert Int to Enum in C#
Learn how to convert an integer to a C# enum with a cast or parsing, and check whether the result is a declared member.
↗
How-tos
Enum Strings in C#
There are 3 main methods that can be used to create an enumeration of strings in C#, the extension function, the constant variables method, and the ToString() function.
↗
How-tos
How to Get Int Value From Enum in C#
This tutorial demonstrates how to get int value from enum type in C# in several methods with thorough description and examples.
↗
How-tos
How to Enumerate an Enum in C#
This tutorial introduces how to enumerate an enum value in C# using different types of methods.
↗
How-tos
How to Convert String to Enum in C#
This C# string to enum how-to article shows different methods to convert a string to enum in C#. It introduces methods like Enum.Parse method, Enum.TryParse method, Enum.IsDefined …
↗
No articles found
Try clearing the filters.