Can u explain what is HashSet?

Posted by Sivanagamahesh under .NET Framework on 12/30/2017 | Points: 10 | Views : 2195 | Status : [Member] | Replies : 1
HashSet The C# HashSet information structure was presented in the .NET Framework 3.5. A full rundown of the actualized individuals can be found at the HashSet MSDN page.

Where is it utilized?

For what reason would you need to utilize it?



Posted by: Ummayashri on: 3/13/2018 [Member] Starter | Points: 25

HashSet is an unordered gathering containing extraordinary components. It has the standard gathering activities Add, Remove, Contains, yet since it utilizes a hash-based execution, these tasks are O(1). ( instead of List for instance, which is O(n) for Contains and Remove.)

Sivanagamahesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response