2 // System.ComponentModel.DefaultPropertyAttribute
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
12 namespace System.ComponentModel
14 [AttributeUsage(AttributeTargets.Class)]
15 public sealed class DefaultPropertyAttribute : Attribute
17 private string property_name;
19 public DefaultPropertyAttribute (string name)
26 get { return property_name; }
29 public override bool Equals (object o)
31 if (!(o is DefaultPropertyAttribute))
34 return (((DefaultPropertyAttribute) o).Name == property_name);
37 public override int GetHashCode ()
39 return base.GetHashCode ();