using System;
using System.Collections.Generic;
namespace TestApp {
class Program {
static void Main(string[] args) {
List < string > ListofValue = new List < string > ();
ListofValue.Add("James");
ListofValue.Add("Trevor");
ListofValue.Add("Ryan");
ListofValue.Add("Roger");
ListofValue.Add("Micheal");
ListofValue.Add("Ethan");
ListofValue.Add("Ruel");
if (ListofValue.Exists(e => e == "Roger")) {
Console.WriteLine("Roger Value Exist in List!!!");
}
}
}
}This code is for read Lambda Values from String List.