EnumerableProxy.cs 498 B

1234567891011121314151617181920212223242526272829
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using System.Collections;
  4. namespace Org.BouncyCastle.Utilities.Collections
  5. {
  6. public sealed class EnumerableProxy
  7. : IEnumerable
  8. {
  9. private readonly IEnumerable inner;
  10. public EnumerableProxy(
  11. IEnumerable inner)
  12. {
  13. if (inner == null)
  14. throw new ArgumentNullException("inner");
  15. this.inner = inner;
  16. }
  17. public IEnumerator GetEnumerator()
  18. {
  19. return inner.GetEnumerator();
  20. }
  21. }
  22. }
  23. #endif