示例#1
0
 static NameCache()
 {
     Names         = Enum.GetNames(typeof(T));
     ReadOnlyNames = new ReadOnlyArray <string>(Names);
 }
示例#2
0
 static ValueCache()
 {
     Values         = (T[])Enum.GetValues(typeof(T));
     ReadOnlyValues = new ReadOnlyArray <T>(Values);
 }