<PackageReference Include="Castle.Core" Version="4.0.0-alpha001" />

ICollectionAdapter<T>

public interface ICollectionAdapter<T>
using System.Collections.Generic; namespace Castle.Components.DictionaryAdapter { public interface ICollectionAdapter<T> { IEqualityComparer<T> Comparer { get; } int Count { get; } T this[int index] { get; set; } bool HasSnapshot { get; } int SnapshotCount { get; } void Initialize(ICollectionAdapterObserver<T> advisor); T AddNew(); bool Add(T value); bool Insert(int index, T value); void Remove(int index); void Clear(); void ClearReferences(); T GetCurrentItem(int index); T GetSnapshotItem(int index); void SaveSnapshot(); void LoadSnapshot(); void DropSnapshot(); } }