BrandGhost
How To Convert Strings To Enums in C#

How To Convert Strings To Enums in C#

In our previous video, we looked at the basics of Enums in C#. We saw that we could cast integers to the Enum type, but we couldn't do that with strings. So how can we go from a string to an Enum type? Let's find out in this C# tutorial on Enums! Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off strong: https://subscribe.devleader.ca Check out more Dev Leader content (including full in-depth articles...
An error has occurred. This application may no longer respond until reloaded. Reload