Table of Contents

Interface IQuery<TObject, TKey>

Namespace
DynamicData
Assembly
DynamicData.dll

Exposes internal cache state to enable querying.

public interface IQuery<TObject, TKey> where TObject : notnull

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

Properties

Count

Gets the count.

int Count { get; }

Property Value

int

Items

Gets the items.

IEnumerable<TObject> Items { get; }

Property Value

IEnumerable<TObject>

KeyValues

Gets the items together with their keys.

IEnumerable<KeyValuePair<TKey, TObject>> KeyValues { get; }

Property Value

IEnumerable<KeyValuePair<TKey, TObject>>

The key values.

Keys

Gets the keys.

IEnumerable<TKey> Keys { get; }

Property Value

IEnumerable<TKey>

Methods

Lookup(TKey)

Lookup a single item using the specified key.

Optional<TObject> Lookup(TKey key)

Parameters

key TKey

The key.

Returns

Optional<TObject>

The looked up value.

Remarks

Fast indexed lookup.