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
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
Комментарии отсутствуют
Информация о видео
4 ноября 2024 г. 22:02:09
00:00:36
Другие видео канала