I have a list of my custom class(which has properties like Name,Age,Address).How can i check whether i have an item with the "Name" value as "shyju" exist in the list and return it if it exist.Name will be unique.No two items have the same name.
the solution now i am thinking of is to go for a for each loop and loop thru each item and check the Name of each item with "shyju" and return it.
Is there any other way to do it ?