30 lines
568 B
C#
30 lines
568 B
C#
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
|
#pragma warning disable
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace BestHTTP.SecureProtocol.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();
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endif
|