Как получить тип EnumКак получить тип, от которого наследуется enum?Например, такой enum:public enum MyEnum : long { Foo, Bar } c#Enum.GetUnderlyingTypeType type = Enum.GetUnderlyingType(typeof(MyEnum)); Console.WriteLine(type); Вывод в консольSystem.Int64