list,arraylist,哈希表,字典,datatable的selct等等用法

例子一.获取到list中的最大值,极其索引

List<int> ls = new List<int>();
            ls.Add(1);
            ls.Add(2);
            ls.Add(8);
            ls.Add(6);
 ls.Select((m, index) => new { index, m }).OrderByDescending(n=>n.m).Take(1);