New/Updated test cases. Fixed TraceTest so that it isn't causing test
[mono.git] / mcs / class / System / System.ComponentModel / DefaultPropertyAttribute.cs
1 //
2 // System.ComponentModel.DefaultPropertyAttribute
3 //
4 // Authors:
5 //      Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 //
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
8 //
9
10 using System;
11
12 namespace System.ComponentModel
13 {
14         [AttributeUsage(AttributeTargets.Class)]
15         public sealed class DefaultPropertyAttribute : Attribute
16         {
17                 private string property_name;
18
19                 public DefaultPropertyAttribute (string name)
20                 {
21                         property_name = name;
22                 }
23
24                 public string Name
25                 {
26                         get { return property_name; }
27                 }
28
29                 public override bool Equals (object o)
30                 {
31                         if (!(o is DefaultPropertyAttribute))
32                                 return false;
33
34                         return (((DefaultPropertyAttribute) o).Name == property_name);
35                 }
36
37                 public override int GetHashCode ()
38                 {
39                         return base.GetHashCode ();
40                 }
41         }
42 }
43