VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-gets-an-icollection-containing-the-values-in-the-hashtable/

⇱ C# | Gets an ICollection containing the values in the Hashtable - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | Gets an ICollection containing the values in the Hashtable

Last Updated : 11 Jul, 2025
Hashtable.Values Property is used to get an ICollection containing the values in the Hashtable. Syntax:
public virtual System.Collections.ICollection Values { get; }
Return Value: This property returns an ICollection containing the values in the Hashtable. Note:
  • The order of values in the ICollection is unspecified.
  • Retrieving the value of this property is an O(1) operation.
Below programs illustrate the use of above-discussed property: Example 1:
Output:
data structures
c++
quiz
geeks
Example 2:
Comment

Explore