示例#1
0
 public static IList <EntityType> GetTypes(this EntityProperty key)
 {
     if (!PropertyTypeLookup.TryGetValue(key, out var values))
     {
         throw new NotImplementedException($"The given key '{key}' could not be found");
     }
     return(values);
 }
示例#2
0
 public static bool HasType(this EntityProperty key, O.M.A.Games.GDOrganizer.Generated.EntityType value)
 {
     if (!PropertyTypeLookup.TryGetValue(key, out var values))
     {
         throw new NotImplementedException($"The given key '{key}' could not be found");
     }
     return(values.Any(p => p == value));
 }