© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
𝔄ℑ𝔇𝔈𝔑

✅ which is better ?

So I have class Room and I’m trying to do some optomization

I created a List of room and then created a function that makes a loop in the list and return the room if it matches the id.

Now thinking about it i can also make a Dictionary<int, room> and access room with the id which one is better ?
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

✅ Which API design is better
C#CC# / help
2y ago
✅ Is there any OCR Nuget which is far better than Tesseract?
C#CC# / help
3y ago
which is faster
C#CC# / help
3y ago