Пример #1
0
 private static Type GetTypeByHerculesType(HerculesValueType type)
 {
     return(HerculesValueTypesMapping.TryMap(type) ?? throw new ArgumentException($"Unknown Hercules value type: '{type}'", nameof(type)));
 }
 public static Type TryMap(HerculesValueType type)
 => ReverseMapping.TryGetValue(type, out var result) ? result : null;