SignerInfoEnumerator.cs 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // SignerInfoEnumerator.cs - System.Security.Cryptography.Pkcs.SignerInfoEnumerator
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. #if NET_1_2
  10. using System;
  11. using System.Collections;
  12. namespace System.Security.Cryptography.Pkcs {
  13. public class SignerInfoEnumerator : IEnumerator {
  14. private IEnumerator enumerator;
  15. // constructors
  16. internal SignerInfoEnumerator (IEnumerable enumerable)
  17. {
  18. enumerator = enumerable.GetEnumerator ();
  19. }
  20. // properties
  21. public SignerInfo Current {
  22. get { return (SignerInfo) enumerator.Current; }
  23. }
  24. object IEnumerator.Current {
  25. get { return enumerator.Current; }
  26. }
  27. // methods
  28. public bool MoveNext ()
  29. {
  30. return enumerator.MoveNext ();
  31. }
  32. public void Reset ()
  33. {
  34. enumerator.Reset ();
  35. }
  36. }
  37. }
  38. #endif