ResolveReference() публичный Метод

public ResolveReference ( object context, string reference ) : object
context object
reference string
Результат object
Пример #1
0
        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            string idStr = reader.Value as string;
            object obj;

            /* Return the cached object instance instead a new one */
            obj = idResolver.ResolveReference(this, idStr);
            if (obj == null)
            {
                obj = DocumentsSerializer.LoadObject(objectType, Guid.Parse(idStr), db, idResolver);
                idResolver.AddReference(this, idStr, obj);
            }
            return(obj);
        }