Click or drag to resize

IOrderedDictionaryTKey, TValueInsert Method

Inserts a new entry into the IOrderedDictionary<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#
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.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.
-or-
index is greater than Count.
ArgumentExceptionAn element with the same key already exists in the IOrderedDictionary<TKey,TValue>.
NotSupportedExceptionThe IOrderedDictionary<TKey,TValue> is read-only.
-or-
The IOrderedDictionary<TKey,TValue> has a fized size.
See Also