Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CountValuesForKey(TKey)

Returns the number of values associated with a given key.
Read time 1 minuteLast updated 13 days ago

Definition

CountValuesForKey(T)

public readonly int CountValuesForKey(TKey key)

Parameters

key

T
The key to look up.

Returns

Type

Description

intThe number of values associated with the key. Returns 0 if the key was not present.