X509ExtensionCollection.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // X509ExtensionCollection.cs - System.Security.Cryptography.X509ExtensionCollection
  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.X509Certificates {
  13. // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
  14. public sealed class X509ExtensionCollection : ICollection, IEnumerable {
  15. // properties
  16. public int Count {
  17. get { return 0; }
  18. }
  19. public bool IsSynchronized {
  20. get { return false; }
  21. }
  22. public object SyncRoot {
  23. get { return null; }
  24. }
  25. public X509Extension this [int index] {
  26. get { return null; }
  27. }
  28. public X509Extension this [string oid] {
  29. get { return null; }
  30. }
  31. // methods
  32. public void CopyTo (X509Extension[] array, int index)
  33. {
  34. if (array == null)
  35. throw new ArgumentNullException ("array");
  36. if (index < 0)
  37. throw new ArgumentException ("negative index");
  38. if (index > array.Length)
  39. throw new ArgumentOutOfRangeException ("index > array.Length");
  40. }
  41. void ICollection.CopyTo (Array array, int index)
  42. {
  43. }
  44. public X509ExtensionEnumerator GetEnumerator ()
  45. {
  46. return new X509ExtensionEnumerator (this);
  47. }
  48. IEnumerator IEnumerable.GetEnumerator ()
  49. {
  50. return new X509ExtensionEnumerator (this);
  51. }
  52. }
  53. }
  54. #endif