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

# Line 14 | Line 14 | namespace RomCheater.Logging
14          public static implicit operator string(EnumNameValuePair<TValue> o) { return o.Name; }
15          public static TValue operator |(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return bitwise_or(x, y); }
16          public static TValue operator &(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return bitwise_and(x, y); }
17 <        public static bool operator ==(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x == y; }
18 <        public static bool operator !=(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x != y; }
17 >        public static bool operator ==(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return x.Value.Equals(y.Value); }
18 >        public static bool operator !=(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return !x.Value.Equals(y.Value); }
19          public override bool Equals(object obj)
20          {
21              EnumNameValuePair<TValue> t = (obj as EnumNameValuePair<TValue>);
22              if (t == null) return false;
23 <            return this.Equals(t);
23 >           return this.Value.Equals(t.Value);
24          }
25          public override int GetHashCode()
26          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines