示例#1
0
        public void Dispose()
        {
            if (_mDisposed == false)
            {
                _mDisposed = true;

                s_Current = m_Previous;

                Thread.EndThreadAffinity();
            }
        }
示例#2
0
        public ErrorSection()
        {
            if (Context.Current != null)
            {
                m_ErrorStartIndex = Context.Current.Errors.Count;
            }

            Thread.BeginThreadAffinity();

            m_Previous = s_Current;
            s_Current  = this;
        }