+ 1
C#Love chat-2
Continue to work for our Mandy. Now we are trying to guess her favourite color. Can I use here ENUM instead of List<>? https://code.sololearn.com/cwsT4sdXXbik/?ref=app
3 Respuestas
+ 1
@Empty and how can I print all variants from enum in Console?
+ 1
@Empty but what if enum has many items, and I want to print them all? How can I use a loop with enum?
+ 1
Finally! I got it! what were my mistakes:
1. after enum line there is NO ";"
2.I didn't know about typeof
https://code.sololearn.com/ctpPlLHAoqpr/?ref=app