Beware of immutable types like DateTime and String

It turns out that DateTime.AddDays returns a new instance of DateTime instead of modifying the existing instance. This is because DateTime is immutable.

Leave a Reply

Your email address will not be published. Required fields are marked *