private IEnumerable <ExtractedEnumType> GetEnumTypes() => _typeCollection.GetEnums().OrderBy(type => type.Name);
Exemplo n.º 2
0
 public EnumTester TestEnumsWithName(string name)
 {
     return(new EnumTester(_typeCollection.GetEnums().Where(en => en.Name == name).FirstOrDefault()));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the client script enums by their script namespace
 /// </summary>
 /// <returns>An enumerable list of enums by their namespace</returns>
 public IEnumerable <IGrouping <string, ExtractedEnumType> > GetEnumsByNamespace()
 {
     return(_typeCollection.GetEnums().GroupBy(en => en.Namespace));
 }