diff --git a/ValueOf/ValueOf.cs b/ValueOf/ValueOf.cs index 81993d3..04299d7 100644 --- a/ValueOf/ValueOf.cs +++ b/ValueOf/ValueOf.cs @@ -82,6 +82,16 @@ public override int GetHashCode() return !(a == b); } + public static bool operator ==(ValueOf a, object b) + { + return b is TThis other && a == other; + } + + public static bool operator !=(ValueOf a, object b) + { + return !(a == b); + } + public static implicit operator TValue(ValueOf a) { return a.Value;