How does the increment operator (++) work on DateTime in C#
- by sohtimsso1970
What happens if you use the increment operator (++) on a DateTime type in C#?
For instance, if I did this:
DateTime blah = new DateTime(2010, 12, 24);
blah++;
What does blah become? Does that increment by a tick or a day?
Or is that even legal?
I don't have a dev environment around, and won't for a few days, or I would just try it and find out. I was too curious to wait so I figured I'd ask the community.