private static Type ConvertValueType(ValueType itemType) { if (SupportedTypes.TryGetValue(itemType, out var result)) { return(result); } throw new ArgumentOutOfRangeException(nameof(itemType), itemType, "Unsupported type"); }
private static TagValueType?Convert(HackTagValueType?hackValue) { if (!hackValue.HasValue || !SupportedTypes.TryGetValue(hackValue.Value, out var tagValue)) { return(null); } return(tagValue); }