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