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

            return(tagValue);
        }