internal DdeDisconnectedEventArgs(DdemlDisconnectedEventArgs args) { _DdemlObject = args; }
private void OnDisconnected(object sender, DdemlDisconnectedEventArgs internalArgs) { EventHandler<DdeDisconnectedEventArgs> copy; // To make this thread-safe we need to hold a local copy of the reference to the invocation list. This works because delegates are //immutable. lock (_LockObject) { copy = _DisconnectedEvent; } if (copy != null) { copy(this, new DdeDisconnectedEventArgs(internalArgs)); } }