using System; namespace System.ComponentModel { /// Specifies that this property can be combined with properties belonging to other objects in a Properties window. // Token: 0x020000AE RID: 174 [AttributeUsage(AttributeTargets.All)] public sealed class MergablePropertyAttribute : Attribute { /// Initializes a new instance of the class. /// true if this property can be combined with properties belonging to other objects in a Properties window; otherwise, false. // Token: 0x060005A6 RID: 1446 RVA: 0x0000EB00 File Offset: 0x0000CD00 public MergablePropertyAttribute(bool allowMerge) { this.mergable = allowMerge; } /// Gets a value indicating whether this property can be combined with properties belonging to other objects in a Properties window. /// true if this property can be combined with properties belonging to other objects in a Properties window; otherwise, false. // Token: 0x1700017D RID: 381 // (get) Token: 0x060005A8 RID: 1448 RVA: 0x0000EB34 File Offset: 0x0000CD34 public bool AllowMerge { get { return this.mergable; } } /// 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: 0x060005A9 RID: 1449 RVA: 0x0000EB3C File Offset: 0x0000CD3C public override bool Equals(object obj) { return obj is MergablePropertyAttribute && (obj == this || ((MergablePropertyAttribute)obj).AllowMerge == this.mergable); } /// Returns the hash code for this instance. /// A hash code for the current . // Token: 0x060005AA RID: 1450 RVA: 0x0000EB68 File Offset: 0x0000CD68 public override int GetHashCode() { return this.mergable.GetHashCode(); } /// Determines if this attribute is the default. /// true if the attribute is the default value for this attribute class; otherwise, false. // Token: 0x060005AB RID: 1451 RVA: 0x0000EB78 File Offset: 0x0000CD78 public override bool IsDefaultAttribute() { return this.mergable == MergablePropertyAttribute.Default.AllowMerge; } // Token: 0x040001AC RID: 428 private bool mergable; /// Specifies the default value, which is , that is a property can be combined with properties belonging to other objects in a Properties window. This static field is read-only. // Token: 0x040001AD RID: 429 public static readonly MergablePropertyAttribute Default = new MergablePropertyAttribute(true); /// Specifies that a property cannot be combined with properties belonging to other objects in a Properties window. This static field is read-only. // Token: 0x040001AE RID: 430 public static readonly MergablePropertyAttribute No = new MergablePropertyAttribute(false); /// Specifies that a property can be combined with properties belonging to other objects in a Properties window. This static field is read-only. // Token: 0x040001AF RID: 431 public static readonly MergablePropertyAttribute Yes = new MergablePropertyAttribute(true); } }