blob: 12c19aaf4082b52d290e989b82db186113aea2d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System;
using System.Collections.Generic;
namespace Org.BouncyCastle.Utilities.Collections
{
/// <summary>A generic interface describing a simple store of objects.</summary>
/// <typeparam name="T">The covariant type of stored objects.</typeparam>
public interface IStore<out T>
{
/// <summary>Enumerate the (possibly empty) collection of objects matched by the given selector.</summary>
/// <param name="selector">The <see cref="ISelector{T}"/> used to select matching objects.</param>
/// <returns>An <see cref="IEnumerable{T}"/> of the matching objects.</returns>
IEnumerable<T> EnumerateMatches(ISelector<T> selector);
}
}
|