📅  最后修改于: 2022-03-11 14:48:45.385000             🧑  作者: Mango
var count1 = typeof(TestEnum).GetFields().Length;
var count2 = Enum.GetNames(typeof(TestEnum)).Length;
var count3 = Enum.GetValues(typeof(TestEnum)).Length;