64 lines
2.4 KiB
C#
64 lines
2.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Reflection;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel.Design
|
|
{
|
|
/// <summary>Represents a design-time license context that can support a license provider at design time.</summary>
|
|
// Token: 0x020001BD RID: 445
|
|
[Token(Token = "0x20001BD")]
|
|
public class DesigntimeLicenseContext : LicenseContext
|
|
{
|
|
/// <summary>Gets the license usage mode.</summary>
|
|
/// <returns>A <see cref="T:System.ComponentModel.LicenseUsageMode" /> indicating the licensing mode for the context.</returns>
|
|
// Token: 0x17000234 RID: 564
|
|
// (get) Token: 0x06000C1D RID: 3101 RVA: 0x00006900 File Offset: 0x00004B00
|
|
[Token(Token = "0x17000234")]
|
|
public override LicenseUsageMode UsageMode
|
|
{
|
|
[Token(Token = "0x6000C1D")]
|
|
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "5")]
|
|
get
|
|
{
|
|
return LicenseUsageMode.Runtime;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a saved license key.</summary>
|
|
/// <param name="type">The type of the license key.</param>
|
|
/// <param name="resourceAssembly">The assembly to get the key from.</param>
|
|
/// <returns>The saved license key that matches the specified type.</returns>
|
|
// Token: 0x06000C1E RID: 3102 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C1E")]
|
|
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "6")]
|
|
public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Sets a saved license key.</summary>
|
|
/// <param name="type">The type of the license key.</param>
|
|
/// <param name="key">The license key.</param>
|
|
// Token: 0x06000C1F RID: 3103 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C1F")]
|
|
[Address(RVA = "0x4E9020", Offset = "0x4E7E20", VA = "0x1804E9020", Slot = "8")]
|
|
public override void SetSavedLicenseKey(Type type, string key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesigntimeLicenseContext" /> class.</summary>
|
|
// Token: 0x06000C20 RID: 3104 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C20")]
|
|
[Address(RVA = "0x4E9080", Offset = "0x4E7E80", VA = "0x1804E9080")]
|
|
public DesigntimeLicenseContext()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000656 RID: 1622
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000656")]
|
|
internal Hashtable savedLicenseKeys;
|
|
}
|
|
}
|