using System; namespace System.ComponentModel { /// Specifies the type of persistence to use when serializing a property on a component at design time. // Token: 0x02000075 RID: 117 [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event)] public sealed class DesignerSerializationVisibilityAttribute : Attribute { /// Initializes a new instance of the class using the specified value. /// One of the values. // Token: 0x06000436 RID: 1078 RVA: 0x0000C7A8 File Offset: 0x0000A9A8 public DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility vis) { this.visibility = vis; } /// Gets a value indicating the basic serialization mode a serializer should use when determining whether and how to persist the value of a property. /// One of the values. The default is . // Token: 0x1700011C RID: 284 // (get) Token: 0x06000438 RID: 1080 RVA: 0x0000C7F4 File Offset: 0x0000A9F4 public DesignerSerializationVisibility Visibility { get { return this.visibility; } } /// 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: 0x06000439 RID: 1081 RVA: 0x0000C7FC File Offset: 0x0000A9FC public override bool Equals(object obj) { return obj is DesignerSerializationVisibilityAttribute && (obj == this || ((DesignerSerializationVisibilityAttribute)obj).Visibility == this.visibility); } /// Returns the hash code for this object. /// A 32-bit signed integer hash code. // Token: 0x0600043A RID: 1082 RVA: 0x0000C828 File Offset: 0x0000AA28 public override int GetHashCode() { return this.visibility.GetHashCode(); } /// Gets a value indicating whether the current value of the attribute is the default value for the attribute. /// true if the attribute is set to the default value; otherwise, false. // Token: 0x0600043B RID: 1083 RVA: 0x0000C83C File Offset: 0x0000AA3C public override bool IsDefaultAttribute() { return this.visibility == DesignerSerializationVisibilityAttribute.Default.Visibility; } // Token: 0x04000161 RID: 353 private DesignerSerializationVisibility visibility; /// Specifies the default value, which is , that is, a visual designer uses default rules to generate the value of a property. This static field is read-only. // Token: 0x04000162 RID: 354 public static readonly DesignerSerializationVisibilityAttribute Default = new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible); /// Specifies that a serializer should serialize the contents of the property, rather than the property itself. This field is read-only. // Token: 0x04000163 RID: 355 public static readonly DesignerSerializationVisibilityAttribute Content = new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content); /// Specifies that a serializer should not serialize the value of the property. This static field is read-only. // Token: 0x04000164 RID: 356 public static readonly DesignerSerializationVisibilityAttribute Hidden = new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden); /// Specifies that a serializer should be allowed to serialize the value of the property. This static field is read-only. // Token: 0x04000165 RID: 357 public static readonly DesignerSerializationVisibilityAttribute Visible = new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible); } }