using System; namespace System.ComponentModel { /// Specifies the to use with a class. This class cannot be inherited. // Token: 0x020000A2 RID: 162 [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] public sealed class LicenseProviderAttribute : Attribute { /// Initializes a new instance of the class without a license provider. // Token: 0x06000549 RID: 1353 RVA: 0x0000E11C File Offset: 0x0000C31C public LicenseProviderAttribute() { this.Provider = null; } /// Initializes a new instance of the class with the specified type. /// The fully qualified name of the license provider class. // Token: 0x0600054A RID: 1354 RVA: 0x0000E12C File Offset: 0x0000C32C public LicenseProviderAttribute(string typeName) { this.Provider = Type.GetType(typeName, false); } /// Initializes a new instance of the class with the specified type of license provider. /// A that represents the type of the license provider class. // Token: 0x0600054B RID: 1355 RVA: 0x0000E144 File Offset: 0x0000C344 public LicenseProviderAttribute(Type type) { this.Provider = type; } /// Gets the license provider that must be used with the associated class. /// A that represents the type of the license provider. The default value is null. // Token: 0x1700015E RID: 350 // (get) Token: 0x0600054D RID: 1357 RVA: 0x0000E160 File Offset: 0x0000C360 public Type LicenseProvider { get { return this.Provider; } } /// Indicates a unique ID for this attribute type. /// A unique ID for this attribute type. // Token: 0x1700015F RID: 351 // (get) Token: 0x0600054E RID: 1358 RVA: 0x0000E168 File Offset: 0x0000C368 public override object TypeId { get { return base.ToString() + ((this.Provider == null) ? null : this.Provider.ToString()); } } /// Indicates whether this instance and a specified object are equal. /// true if is equal to this instance; otherwise, false. /// Another object to compare to. // Token: 0x0600054F RID: 1359 RVA: 0x0000E194 File Offset: 0x0000C394 public override bool Equals(object obj) { return obj is LicenseProviderAttribute && (obj == this || ((LicenseProviderAttribute)obj).LicenseProvider.Equals(this.Provider)); } /// Returns the hash code for this instance. /// A hash code for the current . // Token: 0x06000550 RID: 1360 RVA: 0x0000E1D0 File Offset: 0x0000C3D0 public override int GetHashCode() { return this.Provider.GetHashCode(); } // Token: 0x04000185 RID: 389 private Type Provider; /// Specifies the default value, which is no provider. This static field is read-only. // Token: 0x04000186 RID: 390 public static readonly LicenseProviderAttribute Default = new LicenseProviderAttribute(); } }