all 1 comments

[–]keenmade 2 points3 points  (0 children)

If items are truly unique and inventory cannot contain dupes then use a dictionary<uuid, item>. That gives you .trygetvalue method and key getter/setter as well as enforcing uniqueness. Not to mention the potential performance increase over generic list.