VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-get-an-icollection-containing-values-in-ordereddictionary/

⇱ C# | Get an ICollection containing values in OrderedDictionary - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | Get an ICollection containing values in OrderedDictionary

Last Updated : 11 Jul, 2025
OrderedDictionary.Values property is used to get an ICollection object containing the values in the OrderedDictionary collection. Syntax:
public System.Collections.ICollection Values { get; }
Return Value: It returns an ICollection object containing the values in the OrderedDictionary collection. Below given are some examples to understand the implementation in a better way: Example 1: Output:
value1
value2
value3
value4
value5
Example 2:
Comment

Explore