<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />

EnumerableProxy<T>

sealed class EnumerableProxy<T> : IEnumerable<T>, IEnumerable
using System; using System.Collections; using System.Collections.Generic; namespace Org.BouncyCastle.Utilities.Collections { internal sealed class EnumerableProxy<T> : IEnumerable<T>, IEnumerable { private readonly IEnumerable<T> m_target; internal EnumerableProxy(IEnumerable<T> target) { if (target == null) throw new ArgumentNullException("target"); m_target = target; } IEnumerator IEnumerable.GetEnumerator() { return m_target.GetEnumerator(); } public IEnumerator<T> GetEnumerator() { return m_target.GetEnumerator(); } } }