コード例 #1
0
        internal ComEventsSink AddSink(ref Guid iid)
        {
            ComEventsSink sink = new ComEventsSink(this._rcw, iid);

            this._sinks = ComEventsSink.Add(this._sinks, sink);
            return(this._sinks);
        }
コード例 #2
0
        // 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);
        }