C# Tutorial Enum

Basic

  1. Check if a constant exists in a specified enum in CSharp
  2. Check if one or more bit fields are set in CSharp
  3. Get an array of the names of the constants in a specified enum in CSharp
  4. Get an array of the values of the constants in a specified enum in CSharp
  5. Get the name of the constant in the specified enumeration that has the specified value in CSharp
  6. Get the underlying type of the specified enumeration in CSharp

Calculation

  1. Check if a value is defined as enum number in CSharp
  2. Compare two Enum data type values in CSharp
  3. Get all names from an enum type in CSharp
  4. Get all values from an enum type in CSharp
  5. Get enum underlying type in CSharp
  6. Output enum value in CSharp
  7. Set base type for enum to long in CSharp
  8. Set initial Enum Values in CSharp
  9. Set initial value for the first element in an enum type in CSharp
  10. Switch with Enum and call its ToString function in CSharp

Compare

  1. Compare enum values for equal in CSharp
  2. Compare two enum value and return the sequence in CSharp

Convert

  1. Convert enum to string in CSharp
  2. Convert enum to string using the specified format in CSharp
  3. Convert enum value to string representation according to the specified format in CSharp
  4. Convert integer value to enum in CSharp
  5. Convert object with an integer value to enum in CSharp

Create

  1. Create enum instance from a string in CSharp
  2. Declare enum data type in CSharp
  3. Define enum type constants in CSharp

Format

  1. Format Enum value into hexadecimal in CSharp
  2. Format enum value in CSharp

Parse

  1. Parse string or int or enum to enum, specifies whether the operation is case-insensitive in CSharp
  2. Parse string or numeric value or enum to enum in CSharp
  3. Try to parse number or string to enum in CSharp
  4. Try to parse number or string to enum, specifies whether the operation is case-sensitive in CSharp




















Home »
  C# Tutorial »
    Data Types »




C# Data Types
Bool
Byte
Char
Decimal
Double
Float
Integer
Long
Short
String
C# Array
Array Example
Byte Array
C# Standard Data Type Format
BigInteger
Complex
Currency
DateTime
DateTimeOffset
DateTime Format Parse Convert
TimeSpan
TimeZone
Enum
Null
tuple
var