public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { // There should not be an existing value, but if there is it will be overwritten. Debug.Assert(objectType == typeof(Type)); string s = (string)reader.Value; return(DefinitionLoader.FindType(s)); }