示例#1
0
        /// <summary>
        /// Creates a new solution instance with the document specified updated to be contained in
        /// the sequence of logical folders.
        /// </summary>
        public Solution WithDocumentFolders(DocumentId documentId, IEnumerable <string> folders)
        {
            var newState = _state.WithDocumentFolders(documentId, folders);

            if (newState == _state)
            {
                return(this);
            }

            return(new Solution(newState));
        }