internal JsonConfigScope() { #if !SILVERLIGHT Thread.BeginThreadAffinity(); #endif previous = current; current = this; }
public void Dispose() { if (!disposed) { disposed = true; Debug.Assert(this == current, "Disposed out of order."); current = previous; #if !SILVERLIGHT Thread.EndThreadAffinity(); #endif } }