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