/[RomCheater]/trunk/RomCheater.Logging/EnumNameValuePair.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/EnumNameValuePair.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 115 by william, Thu May 10 15:30:14 2012 UTC revision 265 by william, Sun Jun 3 19:47:47 2012 UTC
# Line 14  namespace RomCheater.Logging Line 14  namespace RomCheater.Logging
14          public static implicit operator string(EnumNameValuePair<TValue> o) { return o.Name; }          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); }          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); }          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; }          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 != y; }          public static bool operator !=(EnumNameValuePair<TValue> x, EnumNameValuePair<TValue> y) { return !x.Value.Equals(y.Value); }
19          public override bool Equals(object obj)          public override bool Equals(object obj)
20          {          {
21              EnumNameValuePair<TValue> t = (obj as EnumNameValuePair<TValue>);              EnumNameValuePair<TValue> t = (obj as EnumNameValuePair<TValue>);
22              if (t == null) return false;              if (t == null) return false;
23              return this.Equals(t);             return this.Value.Equals(t.Value);
24          }          }
25          public override int GetHashCode()          public override int GetHashCode()
26          {          {

Legend:
Removed from v.115  
changed lines
  Added in v.265

  ViewVC Help
Powered by ViewVC 1.1.22