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

◆ GetCurrentContextInfo()

void Internal.Runtime.InteropServices.LicenseInteropProxy.GetCurrentContextInfo ( RuntimeTypeHandle rth,
out bool isDesignTime,
out IntPtr bstrKey )
inline

Definition at line 129 of file LicenseInteropProxy.cs.

130 {
131 Type typeFromHandle = Type.GetTypeFromHandle(rth);
132 object[] array = new object[3] { typeFromHandle, null, null };
133 _licContext = _getCurrentContextInfo.Invoke(null, BindingFlags.DoNotWrapExceptions, null, array, null);
134 _targetRcwType = typeFromHandle;
135 isDesignTime = (bool)array[1];
136 bstrKey = Marshal.StringToBSTR((string)array[2]);
137 }
object? Invoke(object? obj, object?[]? parameters)
static unsafe IntPtr StringToBSTR(string? s)
Definition Marshal.cs:1531
static Type GetTypeFromHandle(RuntimeTypeHandle handle)

References Internal.Runtime.InteropServices.LicenseInteropProxy._getCurrentContextInfo, Internal.Runtime.InteropServices.LicenseInteropProxy._licContext, Internal.Runtime.InteropServices.LicenseInteropProxy._targetRcwType, System.array, System.Type.GetTypeFromHandle(), System.Reflection.MethodBase.Invoke(), and System.Runtime.InteropServices.Marshal.StringToBSTR().