Загрузка...

Pop quiz time, CSharp friends!

If we have an Enum in CSharp for days of the week:

1)
True or False: We can cast an integer value to an Enum type.

2)
True or False: We can cast string values to an Enum type?

Drum roll...
...
..
.
..
...

And the answers are:

1) True!
2) False!

We can't cast strings to Enum types... so what do we use to convert from a string to an Enum value?

Watch the full video here:
https://www.youtube.com/watch?v=VENbpXhGUZM

----
📨 Sign up for my FREE email newsletter:
https://subscribe.devleader.ca
🗣️ Share with your network!

#dotnet #csharp #beginner #coding

Видео Pop quiz time, CSharp friends! канала Dev Leader
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять