调用Ilist.Max()方法
声明个类
public class a
{
public a() { }
public a(string a) { this.aa = a; }
public virtual string aa { get; set; }
}
List<a> list = new List<a>();
list.Add(new a("a"));
list.Add(new a("b"));
list.Add(new a("c"));
var query=list.Max(a => a.aa);
if (query.Length > 0)
{
var maxProperty= query[0];
}