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

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

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