class HybridDictionary

in global :: System . Collections . Specialized

Implements by using a while the collection is small, and then switching to a when the collection gets large.


public HybridDictionary( bool caseInsensitive )

Creates an empty with the specified case sensitivity.

  • caseInsensitive A Boolean that denotes whether the is case-insensitive.

public HybridDictionary( int initialSize )

Creates a case-sensitive with the specified initial size.

  • initialSize The approximate number of entries that the can initially contain.

public HybridDictionary( int initialSize, bool caseInsensitive )

Creates a with the specified initial size and case sensitivity.

  • initialSize The approximate number of entries that the can initially contain.
  • caseInsensitive A Boolean that denotes whether the is case-insensitive.

public void Add( object key, object value )

Adds an entry with the specified key and value into the .

  • key The key of the entry to add.
  • value The value of the entry to add. The value can be .

public bool Contains( object key )

Determines whether the contains a specific key.

  • key The key to locate in the .
  • Returns if the contains an entry with the specified key; otherwise, .

public void CopyTo( Array array, int index )

Copies the entries to a one-dimensional instance at the specified index.

  • array The one-dimensional that is the destination of the objects copied from . The must have zero-based indexing.
  • index The zero-based index in at which copying begins.

public int Count { get; }

Gets the number of key/value pairs contained in the .

  • Returns The number of key/value pairs contained in the . Retrieving the value of this property is an O(1) operation.

public bool IsFixedSize { get; }

Gets a value indicating whether the has a fixed size.

  • Returns This property always returns .

public bool IsReadOnly { get; }

Gets a value indicating whether the is read-only.

  • Returns This property always returns .

public bool IsSynchronized { get; }

Gets a value indicating whether the is synchronized (thread safe).

  • Returns This property always returns .

public ICollection Keys { get; }

Gets an containing the keys in the .

  • Returns An containing the keys in the .

public void Remove( object key )

Removes the entry with the specified key from the .

  • key The key of the entry to remove.

public object SyncRoot { get; }

Gets an object that can be used to synchronize access to the .

  • Returns An object that can be used to synchronize access to the .

public ICollection Values { get; }

Gets an containing the values in the .

  • Returns An containing the values in the .

public IDictionaryEnumerator GetEnumerator( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public HybridDictionary( )

😔 No documentation found.

public void Clear( )

😔 No documentation found.

public object Item { get; set; }

😔 No documentation found.