| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // System.ComponentModel.DefaultPropertyAttribute
- //
- // Authors:
- // Gonzalo Paniagua Javier ([email protected])
- //
- // (C) 2002 Ximian, Inc (http://www.ximian.com)
- //
- using System;
- namespace System.ComponentModel
- {
- [AttributeUsage(AttributeTargets.Class)]
- public sealed class DefaultPropertyAttribute : Attribute
- {
- private string property_name;
- public DefaultPropertyAttribute (string name)
- {
- property_name = name;
- }
- public string Name
- {
- get { return property_name; }
- }
- public override bool Equals (object o)
- {
- if (!(o is DefaultPropertyAttribute))
- return false;
- return (((DefaultPropertyAttribute) o).Name == property_name);
- }
- public override int GetHashCode ()
- {
- return base.GetHashCode ();
- }
- }
- }
|