DateStart + DateEnd
And Their Evil Relatives
ValueObjects
A ramble against objects containing DateStart & DateEnd pairs of properties.
Some of their equally evil relatives:
DateStart&TimeSpanorDay/Month only in DateTime, etc.decimal Money&string Currencydecimal X/Yand/orWidth/Height
This is the case for the ValueObject:
A small simple object, like money or a date
range, whose equality isn’t based on identity.
— Martin Fowler