Can I safely use DateTime
as a key in a SortedDictionary<K, V>
without implementing my own IComparer
?
I've tried it and sort order is maintained and importantly for my purpose the .ContainsKey<T>
method works as expected. But I just want to double check before committing myself down this road.
Update: Thanks for clearing that up folks. All good answers.
Cheers
Kev