c# - Get entry from list by name -


i have list of forms:

list<form> xxx = new list<form>();  

how can find out whether contains form identified name, like:

xxx.contains() 

try use findall function

list<form> xxx = new list<form>(); int count = xxx.findall(x => x.name.equals("yourformname")).count(); 

Comments