In C# we use Enum.Parse() and Enum.TryParse() methods to convert a string into an enum. Here we have given examples for both, but we recommend you to use Enum.TryParse() method when converting a string into an enum.