Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new solution instance with the project documents in the order by the specified document ids.
        /// The specified document ids must be the same as what is already in the project; no adding or removing is allowed.
        /// </summary>
        public Solution WithProjectDocumentsOrder(ProjectId projectId, ImmutableList <DocumentId> documentIds)
        {
            var newState = _state.WithProjectDocumentsOrder(projectId, documentIds);

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

            return(new Solution(newState));
        }