Why do we use hashtable in c#?



Why do we use hashtable in c#?..

Answer / Mr Surgriv Kumar Gautam

"Hashtables are used in C# to efficiently store and retrieve key-value pairs. They provide fast lookups, making them ideal for data structures like dictionaries or databases where frequent lookups are required. Hashtables have an average time complexity of O(1) for both insertion and retrieval operations."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is native image generator (ngen.exe)?

1 Answers  


Why do we need a finally block in try catch block while handling exceptions

4 Answers   IBM,


Explain About stateless and state full web service

1 Answers   Digital GlobalSoft,


Why is aws serverless?

1 Answers  


What is the difference between “finalize” and “finally” methods in c#?

1 Answers  


To allow an element to be accessed using a unique key which .NET collection class is used ?

1 Answers   Siebel,


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1 Answers  


What is the base class in .net from which all the classes are derived from?

1 Answers  


Can abstract class be sealed?

1 Answers  


Explain About Iunknown interface Queue

1 Answers   DELL,


What are the important concepts in OOPS

5 Answers   Fulcrum Logic,


In a C# class we have a SortedList member m_addinProjects we want to provide an iterator to allow the consumer of this class access to the items in the collection. Please provide an iterator method for the AnalyzeAddinsDLL class below and an example of how it would be used. namespace AnalyzeAddinsDLL { public class AllAddInProjects { private SortedList<string, AddInProject> m_addinProjects; public AllAddInProjects() { m_addinProjects = new SortedList<string, AddInProject>(); } } }

1 Answers   ABC, WinsIndia,


Categories