Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Combine()

static void System.Runtime.InteropServices.ComEventsHelper.Combine ( object rcw,
Guid iid,
int dispid,
Delegate d )
inlinestatic

Definition at line 8 of file ComEventsHelper.cs.

9 {
10 lock (rcw)
11 {
12 ComEventsInfo comEventsInfo = ComEventsInfo.FromObject(rcw);
13 ComEventsSink comEventsSink = comEventsInfo.FindSink(ref iid) ?? comEventsInfo.AddSink(ref iid);
14 ComEventsMethod comEventsMethod = comEventsSink.FindMethod(dispid) ?? comEventsSink.AddMethod(dispid);
15 comEventsMethod.AddDelegate(d);
16 }
17 }

References System.Runtime.InteropServices.ComEventsMethod.AddDelegate(), System.Runtime.InteropServices.ComEventsSink.AddMethod(), System.Runtime.InteropServices.ComEventsInfo.AddSink(), System.Runtime.InteropServices.ComEventsSink.FindMethod(), System.Runtime.InteropServices.ComEventsInfo.FindSink(), and System.Runtime.InteropServices.ComEventsInfo.FromObject().

Referenced by System.Runtime.InteropServices.ComAwareEventInfo.AddEventHandler().