1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Nullable fixes with !=

This commit is contained in:
Brian Fiete 2020-05-19 12:27:26 -07:00
parent bf80ec8897
commit 952e3aec58
4 changed files with 32 additions and 5 deletions

View file

@ -113,13 +113,13 @@ namespace System
public static bool operator!=<TOther>(Nullable<T> lhs, TOther rhs) where bool : operator T != TOther
{
if (!lhs.mHasValue) return false;
if (!lhs.mHasValue) return true;
return lhs.mValue != rhs;
}
public static bool operator!=<TOther>(TOther lhs, Nullable<T> rhs) where bool : operator TOther != T
{
if (!rhs.mHasValue) return false;
if (!rhs.mHasValue) return true;
return lhs != rhs;
}