We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0df169 commit d8a7423Copy full SHA for d8a7423
Utils/EnumUtils.cs
@@ -4,8 +4,13 @@
4
5
namespace Utils
6
{
7
- public class EnumUtils
+ public static class EnumUtils
8
9
+ /// <summary>
10
+ /// Returns all possible values of the given enumerable
11
+ /// </summary>
12
+ /// <typeparam name="TEnum">Enumerable whose values are to be returned</typeparam>
13
+ /// <returns>List of possible values of the given enumerable</returns>
14
public static List<TEnum> GetEnumList<TEnum>() where TEnum : Enum
15
=> ((TEnum[])Enum.GetValues(typeof(TEnum))).ToList();
16
}
0 commit comments