2002-08-21 Dietmar Maurer <dietmar@ximian.com>
[mono.git] / mcs / class / corlib / System / Attribute.cs
index e8464ee3b989970d209cfafa1bd6055ca8437b0a..cdad17adbdac63b8b412ed2a4afcc9f7ab42ff60 100644 (file)
@@ -308,10 +308,9 @@ namespace System {
                        return attributes;\r
                }\r
 \r
-               [MonoTODO]\r
                public override int GetHashCode ()\r
                {\r
-                       throw new NotImplementedException ();\r
+                       return ((Object) this).GetHashCode ();\r
                }\r
                \r
                public virtual bool IsDefaultAttribute ()\r
@@ -375,5 +374,13 @@ namespace System {
                        \r
                        return this.Equals (obj);\r
                }\r
+\r
+               public override bool Equals (object obj)\r
+               {\r
+                       if (obj == null || !(obj is Attribute))\r
+                               return false;\r
+\r
+                       return ((Attribute) obj) == this;\r
+               }\r
        }\r
 }\r