public override object GetValue(string name) { var result = base.GetValue(name); if (result is DynamicNullObject == false) { return(result); } if (parentDoc != null) { return(parentDoc[name]); } object documentId = GetDocumentId() as string; if (documentId == null) { return(result); } parentDoc = retriever.Load(documentId); return(parentDoc[name]); }
private bool TryLoadParentDoc() { object documentId = GetDocumentId() as string; if (documentId == null) { return(false); } parentDoc = retriever.Load(documentId); return(true); }