/// <summary>Initializes a new instance of the NServiceKit.Text.JsConfigScope class.</summary> internal JsConfigScope() { #if !SILVERLIGHT Thread.BeginThreadAffinity(); #endif parent = head; head = this; }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged /// resources. /// </summary> public void Dispose() { if (!disposed) { disposed = true; Debug.Assert(this == head, "Disposed out of order."); head = parent; #if !SILVERLIGHT Thread.EndThreadAffinity(); #endif } }