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: