IntDictionary<TValue>

Summary

Fast Dictionary with int type as key When it exceeds a predetermined number of elements(default 32) High load generation

Relation

System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable

Type Params

TValueDictionary value type

Constructor

#ctor(System.Int32) Fast Dictionary with int type as key When it exceeds a predetermined number of elements(default 32) High load generation

Indexer

This[System.Int32] Get elements

Property

Count Gets the count.
Keys Gets the keys.
Values Get value collection
IsReadOnly Gets a value indicating whether this instance is read only.

Method

Add(System.Int32,TValue) Add new value
Remove(System.Int32) Remove from list
Clear( ) Clear all buffer ( Memory is not free )
ContainsKey(System.Int32) Check contains value by key
ContainsValue(TValue) Check contains value by value
TryGetValue(System.Int32,TValue@) Try Get Value When value exists Assign value to value and output
Contains(System.Collections.Generic.KeyValuePair{System.Int32,TValue}) Give KeyValuePair and check if value exists
CopyTo(System.Collections.Generic.KeyValuePair{System.Int32,TValue}[],System.Int32) Copy array
Add(System.Collections.Generic.KeyValuePair{System.Int32,TValue}) Add new value
Remove(System.Collections.Generic.KeyValuePair{System.Int32,TValue}) Remove from list
GetEnumerator( ) Get Enumerator

Reference