C# HybridDictionary Count
Description
HybridDictionary Count
gets the number of key/value
pairs contained in the HybridDictionary.
Syntax
HybridDictionary.Count
has the following syntax.
public int Count { get; }
Example
Gets the number of key/value pairs contained in the HybridDictionary.
using System;//from w w w. j a v a 2 s . c om
using System.Collections;
using System.Collections.Specialized;
public class SamplesHybridDictionary {
public static void Main() {
HybridDictionary myCol = new HybridDictionary();
myCol.Add( "C", "1.29" );
myCol.Add( "D", "0.89" );
myCol.Add( "E", "0.99" );
Console.WriteLine(myCol.Count );
}
}
The code above generates the following result.