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

◆ GetOrRegisterObjectForComInstance() [2/2]

object System.Runtime.InteropServices.ComWrappers.GetOrRegisterObjectForComInstance ( IntPtr externalComObject,
CreateObjectFlags flags,
object wrapper,
IntPtr inner )
inline

Definition at line 123 of file ComWrappers.cs.

124 {
125 if (wrapper == null)
126 {
127 throw new ArgumentNullException("wrapper");
128 }
129 if (!TryGetOrCreateObjectForComInstanceInternal(this, externalComObject, inner, flags, wrapper, out var retValue))
130 {
131 throw new ArgumentNullException("externalComObject");
132 }
133 return retValue;
134 }
static bool TryGetOrCreateObjectForComInstanceInternal(ComWrappers impl, IntPtr externalComObject, IntPtr innerMaybe, CreateObjectFlags flags, object wrapperMaybe, out object retValue)

References System.Runtime.InteropServices.ComWrappers.TryGetOrCreateObjectForComInstanceInternal().