Beispiel #1
0
 public virtual void Dispose()
 {
     if (jObject != null)
     {
         jObject.Dispose();
     }
 }
Beispiel #2
0
        private void HandleException()
        {
            LocalRef exception = null;

            if (Env.TryCatchEcxeption(out exception))
            {
                string stackTrace = null;
                try
                {
                    stackTrace = new Throwable(exception).GetStackTrace();
                }
                finally
                {
                    exception.Dispose();
                }

                Env.ClearContext();
                throw new Exception(stackTrace);
            }
        }