C
C
colonelle2019-02-05 06:36:36
Problem-Based Design
colonelle, 2019-02-05 06:36:36

How to compare dates in Value Object?

good afternoon. please tell me how to compare dates in Value Object, it is necessary to check that the start date is less than or equal to the end date. there is a range
public class DateTimeRange : ValueObject
{
public DateTime Start {get; private set}
public DateTime End {get; private set}
public DateTimeRange(DateTime start, DateTime end)
{
Start = start;
end = end;
}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question