using System; namespace Aitex.Core.Utilities { public class EnumLoop where Key : struct, IConvertible { private static readonly Key[] arr = (Key[])Enum.GetValues(typeof(Key)); public static void ForEach(Action act) { foreach (var t in arr) act(t); } } }