示例#1
0
        Interlocked.Exchange(ref _instance, null)?.Dispose(disposing);     // interlocked to avoid shared state problems from erroneous double/concurrent disposes

        public void Disconnect()
        {
            CheckDisconnectOperations();
            State = PipeState.Disconnected;
            InternalHandle.Dispose();
            InitializeHandle(null, false, false);
        }
示例#2
0
        public bool hasProperty(string methodName)
        {
            InternalHandle h = engine.GlobalObject.GetProperty(methodName);

            if (h.IsError)
            {
                return(false);
            }
            h.Dispose();
            return(true);
        }
示例#3
0
 public void Dispose()
 {
     _Value.Dispose();
 }
示例#4
0
 void IFinalizable.DoFinalize()
 {
     _Value.Dispose();
 }