© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
LeviCoding

Fast search an object in a list using his attribute

So I have a list of ships and each ship has a length width, mass and a name. We need to write a method that searches in this list the oobject using his name attribute. So only a string is given with the method. for example public Ship SearchShip(string shipName){}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Search object Inner list for value
C#CC# / help
15mo ago
✅ ToString of a list of an object
C#CC# / help
3y ago
Add an object to list
C#CC# / help
2y ago
❔ Updating empty object in a list
C#CC# / help
3y ago