2 // System.ComponentModel.RefreshPropertiesAttribute.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2002
11 namespace System.ComponentModel {
12 [AttributeUsage (AttributeTargets.All)]
13 public sealed class RefreshPropertiesAttribute : Attribute {
17 RefreshProperties refresh;
21 public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute (RefreshProperties.All);
22 public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute (RefreshProperties.None);
23 public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute (RefreshProperties.Repaint);
27 public RefreshPropertiesAttribute (RefreshProperties refresh)
29 this.refresh = refresh;
32 #endregion // Constructors
36 public RefreshProperties RefreshProperties {
37 get { return refresh; }
40 #endregion // Properties
45 public override bool Equals (object obj)
47 throw new NotImplementedException ();
51 public override int GetHashCode ()
53 throw new NotImplementedException ();
56 public override bool IsDefaultAttribute ()
58 return (this == RefreshPropertiesAttribute.Default);