using System; using System.Collections.Generic; namespace Org.BouncyCastle.Utilities.Collections { internal sealed class StoreImpl : IStore { private readonly List m_contents; internal StoreImpl(IEnumerable e) { m_contents = new List(e); } IEnumerable IStore.EnumerateMatches(ISelector selector) { foreach (T candidate in m_contents) { if (selector == null || selector.Match(candidate)) yield return candidate; } } } }