How to get the shortest time and longest time(or timespan) from a list using LINQ?
- by shanthiram
hi all,
I am trying to get the longest and shortest timespan in a list using LINQ.
My code looks something like this
List listofTimeSpans = new List();
adding the timespans to listofTimeSpans in a foreach loop.
Please help me with this.
Thank you.