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

◆ RegisterForTrackerSupport()

static void System.Runtime.InteropServices.ComWrappers.RegisterForTrackerSupport ( ComWrappers instance)
inlinestatic

Definition at line 159 of file ComWrappers.cs.

160 {
161 if (instance == null)
162 {
163 throw new ArgumentNullException("instance");
164 }
165 if (Interlocked.CompareExchange(ref s_globalInstanceForTrackerSupport, instance, null) != null)
166 {
167 throw new InvalidOperationException(SR.InvalidOperation_ResetGlobalComWrappersInstance);
168 }
170 }
static void SetGlobalInstanceRegisteredForTrackerSupport(long id)
static ComWrappers s_globalInstanceForTrackerSupport
static int CompareExchange(ref int location1, int value, int comparand)

References System.Threading.Interlocked.CompareExchange(), System.Runtime.InteropServices.ComWrappers.id, System.SR.InvalidOperation_ResetGlobalComWrappersInstance, System.Runtime.InteropServices.ComWrappers.s_globalInstanceForTrackerSupport, and System.Runtime.InteropServices.ComWrappers.SetGlobalInstanceRegisteredForTrackerSupport().