Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# generic enum value to int

public static int EnumToInt<TValue>(this TValue value) where TValue : Enum
    => (int)(object)value;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generic #enum #int
ADD COMMENT
Topic
Name
6+5 =