EnumerableProxy.cs 568 B

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