IStore.cs 836 B

12345678910111213141516171819
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Collections.Generic;
  5. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
  6. {
  7. /// <summary>A generic interface describing a simple store of objects.</summary>
  8. /// <typeparam name="T">The covariant type of stored objects.</typeparam>
  9. public interface IStore<out T>
  10. {
  11. /// <summary>Enumerate the (possibly empty) collection of objects matched by the given selector.</summary>
  12. /// <param name="selector">The <see cref="ISelector{T}"/> used to select matching objects.</param>
  13. /// <returns>An <see cref="IEnumerable{T}"/> of the matching objects.</returns>
  14. IEnumerable<T> EnumerateMatches(ISelector<T> selector);
  15. }
  16. }
  17. #pragma warning restore
  18. #endif