Missing Trend IComparer or LinQ
Hello,
I have a custom grid in which I enter the sales value per Year
e.g.
Year 2000 2001 2002 2003 2005 2006 2007
Sales($) 1005 1006 1002 1001 1004 1005 1002
Ideally the sales should be in Ascending order. I have to find out the missing trend values
e.g
for Year 2002 sales in less < year 2001
for Year 2003 sales in less < year 2002
for Year 2007 sales in less < year 2006
So I have to find out the years where the trend is missing. How can I use IComparer or LinQ to find out the Years where the trend is missing
Thanks... :)
|