ServiceStack.Text.JsConfigScope.Dispose C# (CSharp) Méthode

Dispose() public méthode

public Dispose ( ) : void
Résultat void
        public void Dispose()
        {
            if (!disposed)
            {
                disposed = true;

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

                head = parent;
#if !SILVERLIGHT
                Thread.EndThreadAffinity();
#endif
            }
        }

Usage Example

 public static void DisposeCurrent()
 {
     if (head != null)
     {
         head.Dispose();
     }
 }
All Usage Examples Of ServiceStack.Text.JsConfigScope::Dispose