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