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); }
// 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)); }