10 private static readonly
Type s_licenseAttrType =
Type.
GetType(
"System.ComponentModel.LicenseProviderAttribute, System.ComponentModel.TypeConverter", throwOnError: false);
35 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2111:ReflectionToDynamicallyAccessedMembers", Justification =
"The type parameter to LicenseManager.CreateWithContext method has PublicConstructors annotation. We only invoke this methodfrom AllocateAndValidateLicense which annotates the value passed in with the same annotation.")]
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);
72 runtimeKeyAvail =
false;
75 object[]
array =
new object[4] {
obj,
type,
null,
null };
79 if (disposable !=
null)
84 array =
new object[1] { type.AssemblyQualifiedName };
91 object[]
array =
new object[4] {
null,
type,
null,
null };
110 object[] parameters =
new object[1] {
type };
115 object[] parameters =
new object[2] {
type,
key };
120 object[] parameters =
new object[2] {
type,
obj };
132 object[]
array =
new object[3] { typeFromHandle,
null,
null };
void GetLicInfo(Type type, out bool runtimeKeyAvail, out bool licVerified)
static bool HasLicense(Type type)
readonly MethodInfo _setSavedLicenseKey
readonly MethodInfo _createWithContext
readonly MethodInfo _createDesignContext
readonly MethodInfo _createRuntimeContext
object AllocateAndValidateLicense([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type type, string key, bool isDesignTime)
static readonly Type s_licenseAttrType
readonly MethodInfo _licInfoHelperContains
static readonly Type s_licenseExceptionType
void GetCurrentContextInfo(RuntimeTypeHandle rth, out bool isDesignTime, out IntPtr bstrKey)
readonly MethodInfo _validateTypeAndReturnDetails
void SaveKeyInCurrentContext(IntPtr bstrKey)
string RequestLicKey(Type type)
readonly Type _licInfoHelper
readonly MethodInfo _getCurrentContextInfo
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
object? Invoke(object? obj, object?[]? parameters)
static unsafe IntPtr StringToBSTR(string? s)
static string PtrToStringBSTR(IntPtr ptr)
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
static Type GetTypeFromHandle(RuntimeTypeHandle handle)
Type? GetNestedType(string name)
MethodInfo? GetMethod(string name)
DynamicallyAccessedMemberTypes
static readonly IntPtr Zero