示例#1
0
        internal JsonConfigScope()
        {
#if !SILVERLIGHT
            Thread.BeginThreadAffinity();
#endif
            previous = current;
            current  = this;
        }
示例#2
0
        public void Dispose()
        {
            if (!disposed)
            {
                disposed = true;

                Debug.Assert(this == current, "Disposed out of order.");

                current = previous;
#if !SILVERLIGHT
                Thread.EndThreadAffinity();
#endif
            }
        }