private void OnLinkActivity(object sender, DdemlLinkActivityEventArgs e) { EventHandler<DdeLinkActivityEventArgs> 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 = _LinkActivityEvent; } if (copy != null) copy(this, new DdeLinkActivityEventArgs(e)); }
internal DdeLinkActivityEventArgs(DdemlLinkActivityEventArgs args) : base(args) { _DdemlObject = args; }