public static bool Equals(NullableDecimal x, NullableDecimal y) { if (x.HasValue != y.HasValue) //one is null return false; else if (x.HasValue) //therefor y also HasValue return x.Value == y.Value; else //both are null return true; }
public bool Equals(NullableDecimal x) { return Equals(this, x); }