2023-06-21 12:46:23 -04:00

26 lines
419 B
C#

using System;
using System.Collections;
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();
}
}
}