❔ Nullability issue
I have this code
and i get this warning. How can i fix it?
public bool Equals(Money money)
{
if (money is null)
{
return false;
}
if (ReferenceEquals(this, money))
{
return true;
}
return Currency.CurrencyCode == money.Currency.CurrencyCode && Amount == money.Amount;
} public bool Equals(Money money)
{
if (money is null)
{
return false;
}
if (ReferenceEquals(this, money))
{
return true;
}
return Currency.CurrencyCode == money.Currency.CurrencyCode && Amount == money.Amount;
}and i get this warning. How can i fix it?
