/// <summary> /// Create a new solution instance with the corresponding project updated to include a new /// document instanced defined by the document info. /// </summary> public Solution AddDocument(DocumentInfo documentInfo) { var newState = _state.AddDocument(documentInfo); if (newState == _state) { return(this); } return(new Solution(newState)); }