I have seen many implementations of the publisher customer pattern using a list to store all the receivers.
But none of them was using the hash table.
So, I'm wondering why? Is there any reason why we should not use the hash table for this purpose?
Thanks
  hashtable  optimizes lookup Here you can find common usage cases: 
 In your work, you need to iterate all the customers, so any archive that is  IEnumerable & lt; T & gt;  Uses the interface, but it can be used for  hashtable  
Comments
Post a Comment