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

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

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