BadScript 2
Loading...
Searching...
No Matches
BadEnum.cs
Go to the documentation of this file.
1
4
6
10public static class BadEnum
11{
19 public static T Parse<T>(string value, bool ignoreCase) where T : Enum
20 {
21 return (T)Enum.Parse(typeof(T), value, ignoreCase);
22 }
23
30 public static T Parse<T>(string value) where T : Enum
31 {
32 return (T)Enum.Parse(typeof(T), value);
33 }
34}
Implements Enum functions that are missing in .NET Standard 2.0.
Definition BadEnum.cs:11
static T Parse< T >(string value, bool ignoreCase)
Parses a string to an enum.
Definition BadEnum.cs:19
Contains Utility Functions and Classes.
Definition BadEnum.cs:5