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 |
|
{ |