oh dear
This commit is contained in:
@@ -0,0 +1,379 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel.Design;
|
||||
using System.Reflection;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.ComponentModel
|
||||
{
|
||||
/// <summary>Provides properties and methods to add a license to a component and to manage a <see cref="T:System.ComponentModel.LicenseProvider" />. This class cannot be inherited.</summary>
|
||||
// Token: 0x02000157 RID: 343
|
||||
[Token(Token = "0x2000157")]
|
||||
public sealed class LicenseManager
|
||||
{
|
||||
// Token: 0x06000835 RID: 2101 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000835")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private LicenseManager()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the current <see cref="T:System.ComponentModel.LicenseContext" />, which specifies when you can use the licensed object.</summary>
|
||||
/// <returns>A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies when you can use the licensed object.</returns>
|
||||
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.ComponentModel.LicenseManager.CurrentContext" /> property is currently locked and cannot be changed.</exception>
|
||||
// Token: 0x1700018A RID: 394
|
||||
// (get) Token: 0x06000836 RID: 2102 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000837 RID: 2103 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700018A")]
|
||||
public static LicenseContext CurrentContext
|
||||
{
|
||||
[Token(Token = "0x6000836")]
|
||||
[Address(RVA = "0x4F2310", Offset = "0x4F1110", VA = "0x1804F2310")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000837")]
|
||||
[Address(RVA = "0x4F25B0", Offset = "0x4F13B0", VA = "0x1804F25B0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the <see cref="T:System.ComponentModel.LicenseUsageMode" /> which specifies when you can use the licensed object for the <see cref="P:System.ComponentModel.LicenseManager.CurrentContext" />.</summary>
|
||||
/// <returns>One of the <see cref="T:System.ComponentModel.LicenseUsageMode" /> values, as specified in the <see cref="P:System.ComponentModel.LicenseManager.CurrentContext" /> property.</returns>
|
||||
// Token: 0x1700018B RID: 395
|
||||
// (get) Token: 0x06000838 RID: 2104 RVA: 0x00005070 File Offset: 0x00003270
|
||||
[Token(Token = "0x1700018B")]
|
||||
public static LicenseUsageMode UsageMode
|
||||
{
|
||||
[Token(Token = "0x6000838")]
|
||||
[Address(RVA = "0x4F24E0", Offset = "0x4F12E0", VA = "0x1804F24E0")]
|
||||
get
|
||||
{
|
||||
return LicenseUsageMode.Runtime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000839 RID: 2105 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000839")]
|
||||
[Address(RVA = "0x4F0B30", Offset = "0x4EF930", VA = "0x1804F0B30")]
|
||||
private static void CacheProvider(Type type, LicenseProvider provider)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Creates an instance of the specified type, given a context in which you can use the licensed instance.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type to create.</param>
|
||||
/// <param name="creationContext">A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies when you can use the licensed instance.</param>
|
||||
/// <returns>An instance of the specified type.</returns>
|
||||
// Token: 0x0600083A RID: 2106 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600083A")]
|
||||
[Address(RVA = "0x4F0D50", Offset = "0x4EFB50", VA = "0x1804F0D50")]
|
||||
public static object CreateWithContext(Type type, LicenseContext creationContext)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Creates an instance of the specified type with the specified arguments, given a context in which you can use the licensed instance.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type to create.</param>
|
||||
/// <param name="creationContext">A <see cref="T:System.ComponentModel.LicenseContext" /> that specifies when you can use the licensed instance.</param>
|
||||
/// <param name="args">An array of type <see cref="T:System.Object" /> that represents the arguments for the type.</param>
|
||||
/// <returns>An instance of the specified type with the given array of arguments.</returns>
|
||||
// Token: 0x0600083B RID: 2107 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600083B")]
|
||||
[Address(RVA = "0x4F0DD0", Offset = "0x4EFBD0", VA = "0x1804F0DD0")]
|
||||
public static object CreateWithContext(Type type, LicenseContext creationContext, object[] args)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600083C RID: 2108 RVA: 0x00005088 File Offset: 0x00003288
|
||||
[Token(Token = "0x600083C")]
|
||||
[Address(RVA = "0x4F1010", Offset = "0x4EFE10", VA = "0x1804F1010")]
|
||||
private static bool GetCachedNoLicenseProvider(Type type)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600083D RID: 2109 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600083D")]
|
||||
[Address(RVA = "0x4F1210", Offset = "0x4F0010", VA = "0x1804F1210")]
|
||||
private static LicenseProvider GetCachedProvider(Type type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600083E RID: 2110 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600083E")]
|
||||
[Address(RVA = "0x4F10F0", Offset = "0x4EFEF0", VA = "0x1804F10F0")]
|
||||
private static LicenseProvider GetCachedProviderInstance(Type providerType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600083F RID: 2111 RVA: 0x000050A0 File Offset: 0x000032A0
|
||||
[Token(Token = "0x600083F")]
|
||||
[Address(RVA = "0x4F1330", Offset = "0x4F0130", VA = "0x1804F1330")]
|
||||
private static IntPtr GetLicenseInteropHelperType()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Returns whether the given type has a valid license.</summary>
|
||||
/// <param name="type">The <see cref="T:System.Type" /> to find a valid license for.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the given type is licensed; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x06000840 RID: 2112 RVA: 0x000050B8 File Offset: 0x000032B8
|
||||
[Token(Token = "0x6000840")]
|
||||
[Address(RVA = "0x4F13B0", Offset = "0x4F01B0", VA = "0x1804F13B0")]
|
||||
public static bool IsLicensed(Type type)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Determines whether a valid license can be granted for the specified type.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of object that requests the <see cref="T:System.ComponentModel.License" />.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if a valid license can be granted; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x06000841 RID: 2113 RVA: 0x000050D0 File Offset: 0x000032D0
|
||||
[Token(Token = "0x6000841")]
|
||||
[Address(RVA = "0x4F1520", Offset = "0x4F0320", VA = "0x1804F1520")]
|
||||
public static bool IsValid(Type type)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Determines whether a valid license can be granted for the specified instance of the type. This method creates a valid <see cref="T:System.ComponentModel.License" />.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of object that requests the license.</param>
|
||||
/// <param name="instance">An object of the specified type or a type derived from the specified type.</param>
|
||||
/// <param name="license">A <see cref="T:System.ComponentModel.License" /> that is a valid license, or <see langword="null" /> if a valid license cannot be granted.</param>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if a valid <see cref="T:System.ComponentModel.License" /> can be granted; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x06000842 RID: 2114 RVA: 0x000050E8 File Offset: 0x000032E8
|
||||
[Token(Token = "0x6000842")]
|
||||
[Address(RVA = "0x4F14A0", Offset = "0x4F02A0", VA = "0x1804F14A0")]
|
||||
public static bool IsValid(Type type, object instance, out License license)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Prevents changes being made to the current <see cref="T:System.ComponentModel.LicenseContext" /> of the given object.</summary>
|
||||
/// <param name="contextUser">The object whose current context you want to lock.</param>
|
||||
/// <exception cref="T:System.InvalidOperationException">The context is already locked.</exception>
|
||||
// Token: 0x06000843 RID: 2115 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000843")]
|
||||
[Address(RVA = "0x4F1610", Offset = "0x4F0410", VA = "0x1804F1610")]
|
||||
public static void LockContext(object contextUser)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Allows changes to be made to the current <see cref="T:System.ComponentModel.LicenseContext" /> of the given object.</summary>
|
||||
/// <param name="contextUser">The object whose current context you want to unlock.</param>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="contextUser" /> represents a different user than the one specified in a previous call to <see cref="M:System.ComponentModel.LicenseManager.LockContext(System.Object)" />.</exception>
|
||||
// Token: 0x06000844 RID: 2116 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000844")]
|
||||
[Address(RVA = "0x4F1790", Offset = "0x4F0590", VA = "0x1804F1790")]
|
||||
public static void UnlockContext(object contextUser)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000845 RID: 2117 RVA: 0x00005100 File Offset: 0x00003300
|
||||
[Token(Token = "0x6000845")]
|
||||
[Address(RVA = "0x4F1F70", Offset = "0x4F0D70", VA = "0x1804F1F70")]
|
||||
private static bool ValidateInternal(Type type, object instance, bool allowExceptions, out License license)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000846 RID: 2118 RVA: 0x00005118 File Offset: 0x00003318
|
||||
[Token(Token = "0x6000846")]
|
||||
[Address(RVA = "0x4F1900", Offset = "0x4F0700", VA = "0x1804F1900")]
|
||||
private static bool ValidateInternalRecursive(LicenseContext context, Type type, object instance, bool allowExceptions, out License license, out string licenseKey)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Determines whether a license can be granted for the specified type.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of object that requests the license.</param>
|
||||
/// <exception cref="T:System.ComponentModel.LicenseException">A <see cref="T:System.ComponentModel.License" /> cannot be granted.</exception>
|
||||
// Token: 0x06000847 RID: 2119 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000847")]
|
||||
[Address(RVA = "0x4F2020", Offset = "0x4F0E20", VA = "0x1804F2020")]
|
||||
public static void Validate(Type type)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Determines whether a license can be granted for the instance of the specified type.</summary>
|
||||
/// <param name="type">A <see cref="T:System.Type" /> that represents the type of object that requests the license.</param>
|
||||
/// <param name="instance">An <see cref="T:System.Object" /> of the specified type or a type derived from the specified type.</param>
|
||||
/// <returns>A valid <see cref="T:System.ComponentModel.License" />.</returns>
|
||||
/// <exception cref="T:System.ComponentModel.LicenseException">The type is licensed, but a <see cref="T:System.ComponentModel.License" /> cannot be granted.</exception>
|
||||
// Token: 0x06000848 RID: 2120 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000848")]
|
||||
[Address(RVA = "0x4F2140", Offset = "0x4F0F40", VA = "0x1804F2140")]
|
||||
public static License Validate(Type type, object instance)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040004FC RID: 1276
|
||||
[Token(Token = "0x40004FC")]
|
||||
private static readonly object selfLock;
|
||||
|
||||
// Token: 0x040004FD RID: 1277
|
||||
[Token(Token = "0x40004FD")]
|
||||
private static LicenseContext context;
|
||||
|
||||
// Token: 0x040004FE RID: 1278
|
||||
[Token(Token = "0x40004FE")]
|
||||
private static object contextLockHolder;
|
||||
|
||||
// Token: 0x040004FF RID: 1279
|
||||
[Token(Token = "0x40004FF")]
|
||||
private static Hashtable providers;
|
||||
|
||||
// Token: 0x04000500 RID: 1280
|
||||
[Token(Token = "0x4000500")]
|
||||
private static Hashtable providerInstances;
|
||||
|
||||
// Token: 0x04000501 RID: 1281
|
||||
[Token(Token = "0x4000501")]
|
||||
private static object internalSyncObject;
|
||||
|
||||
// Token: 0x02000158 RID: 344
|
||||
[Token(Token = "0x2000158")]
|
||||
private class LicenseInteropHelper
|
||||
{
|
||||
// Token: 0x0600084A RID: 2122 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600084A")]
|
||||
[Address(RVA = "0x4F0450", Offset = "0x4EF250", VA = "0x1804F0450")]
|
||||
private static object AllocateAndValidateLicense(RuntimeTypeHandle rth, IntPtr bstrKey, int fDesignTime)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600084B RID: 2123 RVA: 0x00005130 File Offset: 0x00003330
|
||||
[Token(Token = "0x600084B")]
|
||||
[Address(RVA = "0x4F0950", Offset = "0x4EF750", VA = "0x1804F0950")]
|
||||
private static int RequestLicKey(RuntimeTypeHandle rth, ref IntPtr pbstrKey)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600084C RID: 2124 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600084C")]
|
||||
[Address(RVA = "0x4F0770", Offset = "0x4EF570", VA = "0x1804F0770")]
|
||||
private void GetLicInfo(RuntimeTypeHandle rth, ref int pRuntimeKeyAvail, ref int pLicVerified)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600084D RID: 2125 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600084D")]
|
||||
[Address(RVA = "0x4F0630", Offset = "0x4EF430", VA = "0x1804F0630")]
|
||||
private void GetCurrentContextInfo(ref int fDesignTime, ref IntPtr bstrKey, RuntimeTypeHandle rth)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600084E RID: 2126 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600084E")]
|
||||
[Address(RVA = "0x4F0A80", Offset = "0x4EF880", VA = "0x1804F0A80")]
|
||||
private void SaveKeyInCurrentContext(IntPtr bstrKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600084F RID: 2127 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600084F")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public LicenseInteropHelper()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000502 RID: 1282
|
||||
[Token(Token = "0x4000502")]
|
||||
private const int S_OK = 0;
|
||||
|
||||
// Token: 0x04000503 RID: 1283
|
||||
[Token(Token = "0x4000503")]
|
||||
private const int E_NOTIMPL = -2147467263;
|
||||
|
||||
// Token: 0x04000504 RID: 1284
|
||||
[Token(Token = "0x4000504")]
|
||||
private const int CLASS_E_NOTLICENSED = -2147221230;
|
||||
|
||||
// Token: 0x04000505 RID: 1285
|
||||
[Token(Token = "0x4000505")]
|
||||
private const int E_FAIL = -2147483640;
|
||||
|
||||
// Token: 0x04000506 RID: 1286
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000506")]
|
||||
private DesigntimeLicenseContext helperContext;
|
||||
|
||||
// Token: 0x04000507 RID: 1287
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000507")]
|
||||
private LicenseContext savedLicenseContext;
|
||||
|
||||
// Token: 0x04000508 RID: 1288
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000508")]
|
||||
private Type savedType;
|
||||
|
||||
// Token: 0x02000159 RID: 345
|
||||
[Token(Token = "0x2000159")]
|
||||
internal class CLRLicenseContext : LicenseContext
|
||||
{
|
||||
// Token: 0x06000850 RID: 2128 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000850")]
|
||||
[Address(RVA = "0x4E6E10", Offset = "0x4E5C10", VA = "0x1804E6E10")]
|
||||
public CLRLicenseContext(LicenseUsageMode usageMode, Type type)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700018C RID: 396
|
||||
// (get) Token: 0x06000851 RID: 2129 RVA: 0x00005148 File Offset: 0x00003348
|
||||
[Token(Token = "0x1700018C")]
|
||||
public override LicenseUsageMode UsageMode
|
||||
{
|
||||
[Token(Token = "0x6000851")]
|
||||
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return LicenseUsageMode.Runtime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000852 RID: 2130 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000852")]
|
||||
[Address(RVA = "0x4E6CF0", Offset = "0x4E5AF0", VA = "0x1804E6CF0", Slot = "6")]
|
||||
public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000853 RID: 2131 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000853")]
|
||||
[Address(RVA = "0x4E6D80", Offset = "0x4E5B80", VA = "0x1804E6D80", Slot = "8")]
|
||||
public override void SetSavedLicenseKey(Type type, string key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000509 RID: 1289
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000509")]
|
||||
private LicenseUsageMode usageMode;
|
||||
|
||||
// Token: 0x0400050A RID: 1290
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400050A")]
|
||||
private Type type;
|
||||
|
||||
// Token: 0x0400050B RID: 1291
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400050B")]
|
||||
private string key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user