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

◆ GetLicInfo()

void Internal.Runtime.InteropServices.LicenseInteropProxy.GetLicInfo ( Type type,
out bool runtimeKeyAvail,
out bool licVerified )
inline

Definition at line 70 of file LicenseInteropProxy.cs.

71 {
72 runtimeKeyAvail = false;
73 licVerified = false;
75 object[] array = new object[4] { obj, type, null, null };
76 if ((bool)_validateTypeAndReturnDetails.Invoke(null, BindingFlags.DoNotWrapExceptions, null, array, null))
77 {
78 IDisposable disposable = (IDisposable)array[2];
79 if (disposable != null)
80 {
81 disposable.Dispose();
82 licVerified = true;
83 }
84 array = new object[1] { type.AssemblyQualifiedName };
85 runtimeKeyAvail = (bool)_licInfoHelperContains.Invoke(obj, BindingFlags.DoNotWrapExceptions, null, array, null);
86 }
87 }
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
Definition Activator.cs:17
object? Invoke(object? obj, object?[]? parameters)

References Internal.Runtime.InteropServices.LicenseInteropProxy._licInfoHelper, Internal.Runtime.InteropServices.LicenseInteropProxy._licInfoHelperContains, Internal.Runtime.InteropServices.LicenseInteropProxy._validateTypeAndReturnDetails, System.array, System.Activator.CreateInstance(), System.IDisposable.Dispose(), System.Reflection.MethodBase.Invoke(), System.obj, and System.type.

Referenced by Internal.Runtime.InteropServices.ComActivator.LicenseClassFactory.GetLicInfo().