Пример #1
0
        public override Type ParseItem(string text)
        {
            if (TypeCache.TryGetValue(text, out Type type))
            {
                return(type);
            }

            type = TypeStrings.ParseCsharpTypeName(text);
            TypeCache.Add(text, type);
            return(type);
        }
Пример #2
0
 // Todo: should get my two-way dictionary class in here so the caching can work for serialization as well
 public override string SerializeItem(Type value)
 {
     return(TypeStrings.GetCsharpTypeName(value));
 }