Core/CafeLib.Core.Collections/Dictionary/OrderedDictionary.cs
/// <summary>
/// Inserts a new entry into the <see cref="OrderedDictionary{TKey,TValue}">OrderedDictionary&lt;TKey,TValue&gt;</see> collection with the specified key and value at the specified index.
/// </summary>
/// <param name="index">The zero-based index at which the element should be inserted.</param>
/// <param name="key">The key of the entry to add.</param>
/// <param name="value">The value of the entry to add. The value can be <null/> if the type of the values in the dictionary is a reference type.</param>
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0.<br/>
/// -or-<br/>
/// <paramref name="index"/> is greater than <see cref="Count"/>.</exception>
/// <exception cref="ArgumentNullException"><paramref name="key"/> is <null/>.</exception>
/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="OrderedDictionary{TKey,TValue}">OrderedDictionary&lt;TKey,TValue&gt;</see>.</exception>
Inserts a new entry into the OrderedDictionary
Inserts a new entry into the OrderedDictionary
public void Insert(int index, TKey key, TValue value)
        {
            if (index > Count || index < 0)
                throw new ArgumentOutOfRangeException(nameof(index));
            Dictionary.Add(key, value);
            List.Insert(index, new KeyValuePair<TKey, TValue>(key, value));
        }
public void Insert ( int index , TKey key , TValue value ) { if ( index > Count || index < 0 ) throw new ArgumentOutOfRangeException ( nameof ( index ) ) ; Dictionary . Add ( key , value ) ; List . Insert ( index , new KeyValuePair < TKey , TValue > ( key , value ) ) ; }
Inserts a new entry into the OrderedDictionary<TKey,TValue>
Inserts a new entry into the OrderedDictionary<TKey TValue >
None
None
An element with the same key already exists in the OrderedDictionary
An element with the same key already exists in the OrderedDictionary
index
int
The zero-based index at which the element should be inserted.
The zero - based index at which the element should be inserted .
key
TKey
The key of the entry to add.
The key of the entry to add .
value
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.
The value of the entry to add . The value can be if the type of the values in the dictionary is a reference type .