コード例 #1
0
        /// <summary>
        /// Gets a copy of the solution isolated from the original so that they do not share computed state.
        ///
        /// Use isolated solutions when doing operations that are likely to access a lot of text,
        /// syntax trees or compilations that are unlikely to be needed again after the operation is done.
        /// When the isolated solution is reclaimed so will the computed state.
        /// </summary>
        public Solution GetIsolatedSolution()
        {
            var newState = _state.GetIsolatedSolution();

            return(new Solution(newState));
        }