int IComparable <SpecializedDateTimeAbstract> .CompareTo(SpecializedDateTimeAbstract other) { if (!_dateTime.HasValue) { return(other._dateTime.HasValue ? -1 : 0); } return(-other._dateTime?.CompareTo(_dateTime.Value) ?? 0); }
/// <inheritdoc /> public bool Equals(SpecializedDateTimeAbstract other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(_dateTime.Equals(other._dateTime)); }