C# HybridDictionary HybridDictionary(Boolean)
Description
HybridDictionary HybridDictionary(Boolean)
creates
an empty HybridDictionary with the specified case sensitivity.
Syntax
HybridDictionary.HybridDictionary(Boolean)
has the following syntax.
public HybridDictionary(
bool caseInsensitive
)
Parameters
HybridDictionary.HybridDictionary(Boolean)
has the following parameters.
caseInsensitive
- A Boolean that denotes whether the HybridDictionary is case-insensitive.
Example
using System;// w w w . j a va 2 s . co m
using System.Collections;
using System.Collections.Specialized;
public class SamplesHybridDictionary {
public static void Main() {
HybridDictionary myCol = new HybridDictionary(false);
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.