C# HybridDictionary HybridDictionary()
Description
HybridDictionary HybridDictionary()
creates an empty
case-sensitive HybridDictionary.
Syntax
HybridDictionary.HybridDictionary()
has the following syntax.
public HybridDictionary()
Example
Creates an empty case-sensitive HybridDictionary.
using System;//from w w w . j ava2 s. co m
using System.Collections;
using System.Collections.Specialized;
public class SamplesHybridDictionary {
public static void Main() {
HybridDictionary myCol = new HybridDictionary();
myCol.Add( "F", "1.49" );
myCol.Add( "A", "1.29" );
myCol.Add( "B", "1.49" );
foreach ( DictionaryEntry de in myCol )
Console.WriteLine( " {0,-25} {1}", de.Key, de.Value );
Console.WriteLine();
}
}
The code above generates the following result.