Answers for "how to parse a enum from a string rus"

C#
1

How can I cast string to enum?

YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);
Posted by: Guest on July-01-2021

Code answers related to "how to parse a enum from a string rus"

C# Answers by Framework

Browse Popular Code Answers by Language