public void RestoreChangeActivityChangingContext()
        {
            (this._OldActivityChangingContext != null).FalseThrow <WfRuntimeException>("没有执行BeginChangeActivityChangingContext,不能执行RestoreChangeActivityChangingContext");

            this._ActivityChangingContext    = this._OldActivityChangingContext;
            this._OldActivityChangingContext = null;
        }
        public void BeginChangeActivityChangingContext()
        {
            (this._OldActivityChangingContext == null).FalseThrow <WfRuntimeException>("不能连续两次执行BeginChangeActivityChangingContext");
            this._OldActivityChangingContext = this.ActivityChangingContext;

            this._ActivityChangingContext = new WfActivityChangingContext();
        }
		public void RestoreChangeActivityChangingContext()
		{
			(this._OldActivityChangingContext != null).FalseThrow<WfRuntimeException>("没有执行BeginChangeActivityChangingContext,不能执行RestoreChangeActivityChangingContext");

			this._ActivityChangingContext = this._OldActivityChangingContext;
			this._OldActivityChangingContext = null;
		}
		public void BeginChangeActivityChangingContext()
		{
			(this._OldActivityChangingContext == null).FalseThrow<WfRuntimeException>("不能连续两次执行BeginChangeActivityChangingContext");
			this._OldActivityChangingContext = this.ActivityChangingContext;

			this._ActivityChangingContext = new WfActivityChangingContext();
		}