AnimancerUtilities.

Set<TKey, TValue>(Dictionary<TKey, TValue>, TKey, TValue) Method

Summary

Registers the `value` in the `dictionary` using the `key`, replacing any previous value.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerUtilities

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Set<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue value)

Remarks

This is identical to setting dictionary[key] = value; except the syntax matches dictionary.Add(key, value);.

Attributes

Type Description
MethodImplAttribute

Type Parameters

Name Description
TKey
TValue

Parameters

Name Type Description
dictionary Dictionary<TKey, TValue>
key TKey
value TValue

Return Value

Type Description
void