private static void Dispose(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); RC4CSP provider; NSJSKeyValueCollection.Release(arguments.This, out provider); }
public static bool RemoveInKeyValueCollection(NSJSObject value) { if (value == null) { return(false); } object result; return(NSJSKeyValueCollection.Release(value, out result)); }
private static void Dispose(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); BaseStream stream; NSJSKeyValueCollection.Release(arguments.This, out stream); if (stream != null) { stream.Dispose(); } }
private void Dispose(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); RijndaelCryptoServiceProvider provider; NSJSKeyValueCollection.Release <RijndaelCryptoServiceProvider>(arguments.This, out provider); if (provider != null) { provider.Dispose(); } }
public static void Close(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); IDbTransaction transaction; NSJSKeyValueCollection.Release(arguments.This, out transaction); if (transaction != null) { try { transaction.Dispose(); } catch (Exception exception) { Throwable.Exception(arguments.VirtualMachine, exception); } } }
private static void Close(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); HTTPApplication application; NSJSKeyValueCollection.Release(arguments.This, out application); if (application == null) { arguments.SetReturnValue(false); } else { bool success = false; try { application.Stop(); success = true; } catch (Exception) { /*---------------------------------------------------------*/ } arguments.SetReturnValue(success); } }