Table of Contents

Method Validate

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Validate(IEnumerable<TKey>)

Validates the dictionary by ensuring that all provided keys exist and appear in the specified order. Missing keys are added with default values, and existing keys are re-ordered.

public List<TKey> Validate(IEnumerable<TKey> idsInOrder)

Parameters

idsInOrder IEnumerable<TKey>

The ordered list of keys that define the desired dictionary structure.

Returns

List<TKey>

A list containing keys that appear more than once in the input sequence.