Best way for compare Nullable Datetimes

  • Thread starter Alhambra Eidos Kiquenet
  • Start date
A

Alhambra Eidos Kiquenet

Hi mister,

I have an object with two properties, of type DateTime? (Nullable).

Which is the best way for comparing ? The value of datetime can be null, and
another value cannot be null, or two values are null, or two values aren't
null.

if (tarea.Fcprioridad < tarea.Fcentrega)

Can I use Comparer ??
thanks in advance. Greetings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top