I use the followings to check the array or List is Included a value:
string[] Names= { /* */};
string target = "";
if(Array.IndexOf(Names, target) > -1)
//Do
So is there any linq command to check it?
Do you mean a Linq method?
If so, there is one:
Names.Contains(target)
Note there is no need for any lambda here.