1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
class item{ int id string title } //loop though collection to create hash foreach(singleitem in itemscollection myhash.add(singlitem.id, singleitem) //get the object out of the hash if (myhash.containskey(someid)) dosomething( (item) myhash[someid])