Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateRange #1

Closed
andreatosato opened this issue Mar 18, 2022 · 1 comment
Closed

DateRange #1

andreatosato opened this issue Mar 18, 2022 · 1 comment

Comments

@andreatosato
Copy link
Collaborator

Questa condizione sarà sempre falsa.
Un datetime è sempre diverso da null

 public DateRange(DateTime fromDate, DateTime toDate)
        {
            ArgumentNullException.ThrowIfNull(fromDate, nameof(fromDate));
            ArgumentNullException.ThrowIfNull(toDate, nameof(toDate));
@andreatosato
Copy link
Collaborator Author

In questo caso, l'operatore compare dovrebbe essere più performante.

if (fromDate.Date > toDate.Date)

@ruzze ruzze closed this as completed Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants