ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.Logging/EnumNameValuePair.cs
(Generate patch)

Comparing trunk/RomCheater.Logging/EnumNameValuePair.cs (file contents):
Revision 264 by william, Thu May 10 15:30:14 2012 UTC vs.
Revision 265 by william, Sun Jun 3 19:47:47 2012 UTC

--- trunk/RomCheater.Logging/EnumNameValuePair.cs	2012/06/03 19:38:30	264
+++ trunk/RomCheater.Logging/EnumNameValuePair.cs	2012/06/03 19:47:47	265
@@ -14,13 +14,13 @@ namespace RomCheater.Logging
         public static implicit operator string(EnumNameValuePair<TValue> o) { return o.Name; }
         public static TValue operator |(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return bitwise_or(x, y); }
         public static TValue operator &(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return bitwise_and(x, y); }
-        public static bool operator ==(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x == y; }
-        public static bool operator !=(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x != y; }
+        public static bool operator ==(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x.Value.Equals(y.Value); }
+        public static bool operator !=(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return !x.Value.Equals(y.Value); }
         public override bool Equals(object obj)
         {
             EnumNameValuePair<TValue> t = (obj as EnumNameValuePair<TValue>);
             if (t == null) return false;
-            return this.Equals(t);
+           return this.Value.Equals(t.Value);
         }
         public override int GetHashCode()
         {