示例#1
0
        /// <summary>
        /// Creates a new solution instance with the document specified updated to have the source
        /// code kind specified.
        /// </summary>
        public Solution WithDocumentSourceCodeKind(DocumentId documentId, SourceCodeKind sourceCodeKind)
        {
            var newState = _state.WithDocumentSourceCodeKind(documentId, sourceCodeKind);

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

            return(new Solution(newState));
        }