Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.8K+ articles
DSA
20.1K+ articles
Python
20.0K+ articles
Misc
8.2K+ articles
Difference Between
3.2K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp-Collections-Namespace
196+ articles
CSharp Dictionary Class
14+ articles
CSharp-HashTable
2+ articles
CSharp-Collections-Hashtable
21 posts
Recent Articles
Popular Articles
C# | Remove the element with the specified key from the Hashtable
Last Updated: 01 February 2019
The Hashtable class represents a collection of key-and-value pairs that are organized based on the hash code of the key. The key is used to access the items in the collect...
read more
Misc
C#
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# Hashtable Class
Last Updated: 31 January 2025
Hashtable class in C# is a part of the operations. It represents a collection of key-value pairs that are organized based on the hash code of the key. The Hashtable class ...
read more
C#
CSharp-HashTable
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Get an enumerator that iterates through the Hashtable
Last Updated: 01 February 2019
Hashtable.GetEnumerator Method is used to returns an IDictionaryEnumerator that iterates through the Hashtable.Syntax:public virtual System.Collections.IDictionaryEnumerat...
read more
C#
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Copying the Hashtable elements to an Array Instance
Last Updated: 22 June 2021
Hashtable.CopyTo(Array, Int32) Method is used to copy the elements of a Hashtable to a one-dimensional Array instance at the specified index.Syntax:public virtual void Cop...
read more
C#
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Get or Set the value associated with specified key in Hashtable
Last Updated: 01 February 2019
Hashtable.Item[Object] Property is used to get or set the value associated with the specified key in the Hashtable.Syntax:public virtual object this[object key] { get; set...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Gets an ICollection containing the keys in the Hashtable
Last Updated: 01 February 2019
Hashtable.Keys Property is used to get an ICollection containing the keys in the Hashtable.Syntax:public virtual System.Collections.ICollection Keys { get; } Return Value:...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Gets an ICollection containing the values in the Hashtable
Last Updated: 01 February 2019
Hashtable.Values Property is used to get an ICollection containing the values in the Hashtable.Syntax:public virtual System.Collections.ICollection Values { get; }Return V...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Check whether a Hashtable contains a specific key or not
Last Updated: 01 February 2019
Hashtable.Contains(Object) Method is used to check whether the Hashtable contains a specific key or not.Syntax:public virtual bool Contains (object key);Here, key is the K...
read more
C#
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Check if Hashtable has a fixed size
Last Updated: 01 February 2019
Hashtable.IsFixedSize Property is used to get a value which indicates whether the Hashtable has a fixed size or not.Syntax:public virtual bool IsFixedSize { get; }Return V...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Check if Hashtable is read-only
Last Updated: 01 February 2019
Hashtable.IsReadOnly property is used to get a value indicating whether the Hashtable is read-only or not.Syntax:public virtual bool IsReadOnly { get; }Return Value: This ...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Check if Hashtable is synchronized (thread safe)
Last Updated: 01 February 2019
Hashtable.IsSynchronized Property is used to get a value indicating whether access to the Hashtable is synchronized(thread-safe).Syntax:public virtual bool IsSynchronized ...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# | Creating a synchronized (thread-safe) wrapper for the Hashtable
Last Updated: 09 August 2021
Hashtable.Synchronized(Hashtable) Method is used to return a synchronized (thread-safe) wrapper for the Hashtable.Syntax:public static System.Collections.Hashtable Synchro...
read more
C#
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
How to create a shallow copy of Hashtable in C#
Last Updated: 05 February 2019
Hashtable.Clone Method is used to create a shallow copy of the Hashtable. When we make a shallow copy, only the elements of the collection get copied irrespective of its t...
read more
C#
Picked
CSharp-method
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# Hashtable
Last Updated: 31 January 2025
In C#, a Hashtable is a collection that stores key-value pairs. It uses a hash code to organize the keys for efficient data retrieval. The key can be any object, and each ...
read more
C#
CSharp-Collections-Hashtable
CSharp-Collections-Namespace
C# Hashtable vs Dictionary
Last Updated: 31 January 2025
In C# both Hashtable and Dictionary are used to store key-value pairs. Understanding the difference between Hashtable and Dictionary plays a very important role in choosin...
read more
Difference Between
C#
CSharp-Collections-Hashtable
CSharp Dictionary Class
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !