111,095
社区成员




public class TempType
{
public int Type1 { get; set; }
public string Type2 { get; set; }
public TempType(int type1, string type2)
{
Type1 = type1;
Type2 = type2;
}
}
List<TempType> list = new List<TempType>();
list.Add(new TempType(1, "a"));
list.Add(new TempType(2, "c"));
list.Add(new TempType(2, "a"));
list.Add(new TempType(1, "b"));
list.Add(new TempType(2, "b"));
var a = from l in list
orderby l.Type1, l.Type2
select l;