Horje
C# .net core convert int to enum Code Example
C# .net core convert int to enum
if (Enum.IsDefined(typeof(YourEnum), yourInt))
{
    return (YourEnum) yourInt;
}

  OR:

if (Enum.IsDefined(typeof(YourEnum), yourInt))
{
    return (YourEnum) Enum.ToObject(typeof(YourEnum), yourInt);
}




Csharp

Related
.net core check if user is logged in Code Example .net core check if user is logged in Code Example
how to get desktop name in c# Code Example how to get desktop name in c# Code Example
how to reference function in unity Code Example how to reference function in unity Code Example
convert string into double in c# Code Example convert string into double in c# Code Example
c# connection string Code Example c# connection string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11