public void Dispose() { if (_mDisposed == false) { _mDisposed = true; s_Current = m_Previous; Thread.EndThreadAffinity(); } }
public ErrorSection() { if (Context.Current != null) { m_ErrorStartIndex = Context.Current.Errors.Count; } Thread.BeginThreadAffinity(); m_Previous = s_Current; s_Current = this; }