Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get max enum value c#

var lastFoo = Enum.GetValues(typeof(Foo)).Cast<Foo>().Max();
 
PREVIOUS NEXT
Tagged: #max #enum
ADD COMMENT
Topic
Name
4+9 =