Click or drag to resize

OrderedDictionaryTKey, TValueInsert Method

Inserts a new entry into the OrderedDictionary<TKey,TValue> collection with the specified key and value at the specified index.

Namespace:  Ifs.Fnd.Core
Assembly:  Ifs.Fnd.Core (in Ifs.Fnd.Core.dll) Version: 4.52.10.0 (10.2.2.9999)
Syntax
C#
public void Insert(
	int index,
	TKey key,
	TValue value
)

Parameters

index
Type: SystemInt32
The zero-based index at which the element should be inserted.
key
Type: TKey
The key of the entry to add.
value
Type: TValue
The value of the entry to add. The value can be if the type of the values in the dictionary is a reference type.

Implements

IOrderedDictionaryTKey, TValueInsert(Int32, TKey, TValue)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.
-or-
index is greater than Count.
ArgumentNullExceptionkey is .
ArgumentExceptionAn element with the same key already exists in the OrderedDictionary<TKey,TValue>.
See Also