DateStart + DateEnd
And Their Evil Relatives
ValueObjects
A ramble against objects containing DateStart
& DateEnd
pairs of properties.
Some of their equally evil relatives:
DateStart
&TimeSpan
orDay/Month only in DateTime
, etc.decimal Money
&string Currency
decimal X/Y
and/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