Mega Code Archive

 
Categories / C# / Collections Data Structure
 

Gets a collection of values in the StringDictionary

using System; using System.Collections; using System.Collections.Specialized; public class SamplesStringDictionary {     public static void Main()     {         StringDictionary myCol = new StringDictionary();         myCol.Add( "A", "a" );         myCol.Add( "B", "b" );         myCol.Add( "C", "c" );         Console.WriteLine("VALUES");         foreach (string val in myCol.Values)         {             Console.WriteLine(val);         }     } }