My.NET application works with a collection of users. The user object contains the username, full name, domain ....
I wonder what type of collection I should prefer to store for users, between 1) List or 2) Dictionary, where the dictionary key is the username.
I understand that the dictionary option is the fastest when you want to extract a user from your username, but since the username is referenced, a consistency error may occur twice. (as a dictionary key and as a user attribute)? Could you also explain to me what are the differences from the design point of view?
source share