OrderedDictionary<TKey,TValue>.SetAt Method

Definition

Overloads

SetAt(Int32, TValue)

Sets the value for the key at the specified index.

SetAt(Int32, TKey, TValue)

Sets the key/value pair at the specified index.

SetAt(Int32, TValue)

Sets the value for the key at the specified index.

C#
public void SetAt(int index, TValue value);

Parameters

index
Int32

The zero-based index of the element to get or set.

value
TValue

The value to store at the specified index.

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10

SetAt(Int32, TKey, TValue)

Sets the key/value pair at the specified index.

C#
public void SetAt(int index, TKey key, TValue value);

Parameters

index
Int32

The zero-based index of the element to get or set.

key
TKey

The key to store at the specified index.

value
TValue

The value to store at the specified index.

Exceptions

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10