Table of Contents

Interface ICachedCollection<T>

Namespace
Utils.Common.Collections.Synchronized
Assembly
Utils.Common.dll

A synchronized collection that also exposes an array snapshot of its items, for reading or enumerating while other threads may modify the collection.

public interface ICachedCollection<T>

Type Parameters

T

The type of the items.

Extension Methods

Properties

Cache

A snapshot of the items. The same array is returned until the collection is modified, then a new one is built on the next access; do not modify the array.

T[] Cache { get; }

Property Value

T[]