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:
parent
bf80ec8897
commit
952e3aec58
4 changed files with 32 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue