InheritValues() public method

public InheritValues ( Document oldDocument ) : void
oldDocument Document
return void
Exemplo n.º 1
0
 public void ChangeDocument(Document newDocument)
 {
     lock (documentLock)
     {
         Document oldDocument = Document;
         Document = newDocument;
         newDocument.InheritValues(oldDocument);
         // do we need to assign semanticsInLinks here?
         // TODO recycle oldDocument
     }
 }
 public void ChangeDocument(Document newDocument)
 {
     lock (documentLock)
     {
         Document oldDocument = Document;
         Document = newDocument;
         newDocument.InheritValues(oldDocument);
         // do we need to assign semanticsInLinks here?
         // TODO recycle oldDocument
     }
 }