コード例 #1
0
 /// <summary>
 /// Releases resources used by this engine.
 /// </summary>
 public override void Dispose()
 {
     if (!_disposed)
     {
         _context.Dispose();
         _disposed = true;
     }
 }
コード例 #2
0
 public void Dispose()
 {
     if (_jsContext != null)
     {
         _jsContext.Dispose();
         _jsContext = null;
     }
     if (_jsEngine != null)
     {
         _jsEngine.Dispose();
         _jsEngine = null;
     }
     if (_singleton != null)
     {
         _singleton = null;
     }
 }