internal ComEventsSink AddSink(ref Guid iid) { ComEventsSink sink = new ComEventsSink(this._rcw, iid); this._sinks = ComEventsSink.Add(this._sinks, sink); return(this._sinks); }
// it is caller's responsibility to call this method under lock(rcw) public ComEventsSink AddSink(ref Guid iid) { ComEventsSink sink = new ComEventsSink(_rcw, iid); _sinks = ComEventsSink.Add(_sinks, sink); return(_sinks); }