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