示例#1
0
        /// <summary>
        /// Create a new context by combining the current and other contexts
        /// </summary>
        /// <param name="other">other context</param>
        /// <returns>new context instance</returns>
        public Context CombineWith(Context other)
        {
            var clone = new Context();

            clone.SetData(this);

            return(clone.UpdateWith(other));
        }
示例#2
0
        public Context Clone()
        {
            Context clone = new Context();

            clone.SetData(this);

            return(clone);
        }