protected static bool EqualOperator(ValueObjectBase left, ValueObjectBase right) { if (ReferenceEquals(left, null) ^ ReferenceEquals(right, null)) { return(false); } return(ReferenceEquals(left, null) || left.Equals(right)); }
protected static bool NotEqualOperator(ValueObjectBase left, ValueObjectBase right) { return(!(EqualOperator(left, right))); }