1 2 3 4 5 6 7 8 9 10 11 12
using System; using System.Collections.Generic; using System.Linq; namespace IOL.Helpers; public static class EnumHelpers { public static IEnumerable<T> GetValues<T>() { return Enum.GetValues(typeof(T)).Cast<T>(); } }