Example #1
0
 public void AddEnum(TypeDefinition thingType)
 {
     if (Enums.All(e => e.FullName != thingType.FullName))
     {
         var conflictEnum = Enums.SingleOrDefault(e => e.Name == thingType.Name);
         if (conflictEnum == null)
         {
             Enums.Add(thingType);
         }
         else
         {
             LogMessages[thingType.Name] = $"Enum [{thingType.Name}] of type [{thingType.FullName}] conflicts with [{conflictEnum.FullName}]";
         }
     }
 }