c# - How to select next enum value ? -


this question has answer here:

i've c# enum type:

private enum dayname { monday=1, tuesday=2 ... sunday=7 };  private dayname today ;  today = dayname.friday; 

how like:

today ++ ; print(today) ->  

and "saturday" ?

well first set today = dayname.friday , print(today.tostring() after today ++ ;

as descirbed @ post, enum string name value


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -