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

◆ RegisterForMarshalling()

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

Definition at line 177 of file ComWrappers.cs.

178 {
179 if (instance == null)
180 {
181 throw new ArgumentNullException("instance");
182 }
183 if (Interlocked.CompareExchange(ref s_globalInstanceForMarshalling, instance, null) != null)
184 {
185 throw new InvalidOperationException(SR.InvalidOperation_ResetGlobalComWrappersInstance);
186 }
188 }
static ComWrappers s_globalInstanceForMarshalling
static void SetGlobalInstanceRegisteredForMarshalling(long id)
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_globalInstanceForMarshalling, and System.Runtime.InteropServices.ComWrappers.SetGlobalInstanceRegisteredForMarshalling().