how to search for a value in a list
pretty stupid question but ive tried looking online and i cant seem to find the answer, im fairly sure im using an older .net

name with that


using System.Linq;
string valueThatImLookingFor = "this";
list.First(p => p.Value/*or whatever the member name is*/ == valueThatImLookingFor);p => p.Name == attackerNameFirstOrDefaultdefault(T)team_createteam_createsnake_caseTeamCreatepublic string name;public string Name { get; set; }Team1.Any(x => x.Name == P1Check)