Code publicclass LambdaExpressions
{ publicint ID { get; set; } publicstring Name { get; set; }
publicvoid LambdaExpressionsTest()
{
List<LambdaExpressions> list =new List<LambdaExpressions>
{ new LambdaExpressions { ID =1, Name ="webabcd" }, new LambdaExpressions { ID =2, Name ="webabcdefg" }, new LambdaExpressions { ID =3, Name ="webabcdefghijklmn" }
};
IEnumerable<LambdaExpressions> l = list.Where(le => le.Name =="webabcd");