I have a List of User objects from my data store.
Now once it is already in memory the only way to get a user by his ID is to use the Single extension method. This is really performance degrading.
I know I could have used a dictionary instead of a list but this would be redundant. I would have to store the Primary Key 2 times. So is there another way to do what i want?
BTW I am making a custom class that can do something like this, but i was hoping for something out of the box.