nullabilities
This commit is contained in:
parent
069ef96010
commit
41f046624d
|
|
@ -49,9 +49,9 @@ public class DateOnlyFrame : IEquatable<DateOnlyFrame>
|
|||
public override int GetHashCode()
|
||||
=> HashCode.Combine(fromDate, toDate);
|
||||
|
||||
public static bool operator ==(DateOnlyFrame left, DateOnlyFrame right)
|
||||
=> left.Equals(right);
|
||||
public static bool operator ==(DateOnlyFrame? left, DateOnlyFrame? right)
|
||||
=> left?.Equals(right) ?? right is null;
|
||||
|
||||
public static bool operator !=(DateOnlyFrame left, DateOnlyFrame right)
|
||||
=> !left.Equals(right);
|
||||
public static bool operator !=(DateOnlyFrame? left, DateOnlyFrame? right)
|
||||
=> !(left?.Equals(right) ?? right is null);
|
||||
}
|
||||
|
|
@ -40,9 +40,9 @@ public class DateTimeFrame : IEquatable<DateTimeFrame>
|
|||
public override int GetHashCode()
|
||||
=> HashCode.Combine(FromDate, ToDate);
|
||||
|
||||
public static bool operator ==(DateTimeFrame left, DateTimeFrame right)
|
||||
=> left.Equals(right);
|
||||
public static bool operator ==(DateTimeFrame? left, DateTimeFrame? right)
|
||||
=> left?.Equals(right) ?? right is null;
|
||||
|
||||
public static bool operator !=(DateTimeFrame left, DateTimeFrame right)
|
||||
=> !left.Equals(right);
|
||||
public static bool operator !=(DateTimeFrame? left, DateTimeFrame? right)
|
||||
=> !(left?.Equals(right) ?? right is null);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user