MongoDBDriver/Database.cs
/// <summary>
/// Gets the document that a reference is pointing to.
/// </summary>
Gets the document that a reference is pointing to.
Gets the document that a reference is pointing to .
public Document FollowReference(DBRef reference){
            if(reference == null) throw new ArgumentNullException("reference cannot be null");
            Document query = new Document().Append("_id", reference.Id);
            return this[reference.CollectionName].FindOne(query);
        }
public Document FollowReference ( DBRef reference ) { if ( reference == null ) throw new ArgumentNullException ( " " ) ; Document query = new Document ( ) . Append ( " " , reference . Id ) ; return this [ reference . CollectionName ] . FindOne ( query ) ; }
Gets the document that a reference is pointing to.
Gets the document that a reference is pointing to .
reference
DBRef