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

◆ LicenseInteropProxy()

Internal.Runtime.InteropServices.LicenseInteropProxy.LicenseInteropProxy ( )
inline

Definition at line 36 of file LicenseInteropProxy.cs.

37 {
38 Type type = Type.GetType("System.ComponentModel.LicenseManager, System.ComponentModel.TypeConverter", throwOnError: true);
39 Type type2 = Type.GetType("System.ComponentModel.LicenseContext, System.ComponentModel.TypeConverter", throwOnError: true);
40 _setSavedLicenseKey = type2.GetMethod("SetSavedLicenseKey", BindingFlags.Instance | BindingFlags.Public);
41 _createWithContext = type.GetMethod("CreateWithContext", new Type[2]
42 {
43 typeof(Type),
44 type2
45 });
46 Type nestedType = type.GetNestedType("LicenseInteropHelper", BindingFlags.NonPublic);
47 _validateTypeAndReturnDetails = nestedType.GetMethod("ValidateAndRetrieveLicenseDetails", BindingFlags.Static | BindingFlags.Public);
48 _getCurrentContextInfo = nestedType.GetMethod("GetCurrentContextInfo", BindingFlags.Static | BindingFlags.Public);
49 Type nestedType2 = type.GetNestedType("CLRLicenseContext", BindingFlags.NonPublic);
50 _createDesignContext = nestedType2.GetMethod("CreateDesignContext", BindingFlags.Static | BindingFlags.Public);
51 _createRuntimeContext = nestedType2.GetMethod("CreateRuntimeContext", BindingFlags.Static | BindingFlags.Public);
52 _licInfoHelper = type.GetNestedType("LicInfoHelperLicenseContext", BindingFlags.NonPublic);
54 }
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
Definition Type.cs:408
Type? GetNestedType(string name)
Definition Type.cs:797
MethodInfo? GetMethod(string name)
Definition Type.cs:675

References Internal.Runtime.InteropServices.LicenseInteropProxy._createDesignContext, Internal.Runtime.InteropServices.LicenseInteropProxy._createRuntimeContext, Internal.Runtime.InteropServices.LicenseInteropProxy._createWithContext, Internal.Runtime.InteropServices.LicenseInteropProxy._getCurrentContextInfo, Internal.Runtime.InteropServices.LicenseInteropProxy._licInfoHelper, Internal.Runtime.InteropServices.LicenseInteropProxy._licInfoHelperContains, Internal.Runtime.InteropServices.LicenseInteropProxy._setSavedLicenseKey, Internal.Runtime.InteropServices.LicenseInteropProxy._validateTypeAndReturnDetails, System.Type.GetMethod(), System.Type.GetNestedType(), System.Type.GetType(), and System.type.

Referenced by Internal.Runtime.InteropServices.LicenseInteropProxy.Create().