mscorlib(4.0.0.0) API with additions
X509Certificate2Enumerator.cs
1 using System.Collections;
2 
4 {
6  public sealed class X509Certificate2Enumerator : IEnumerator
7  {
8  private IEnumerator baseEnumerator;
9 
13  public X509Certificate2 Current => (X509Certificate2)baseEnumerator.Current;
14 
18  object IEnumerator.Current
19  {
20  get
21  {
22  return baseEnumerator.Current;
23  }
24  }
25 
26  private X509Certificate2Enumerator()
27  {
28  }
29 
30  internal X509Certificate2Enumerator(X509Certificate2Collection mappings)
31  {
32  baseEnumerator = ((IEnumerable)mappings).GetEnumerator();
33  }
34 
39  public bool MoveNext()
40  {
41  return baseEnumerator.MoveNext();
42  }
43 
48  bool IEnumerator.MoveNext()
49  {
50  return baseEnumerator.MoveNext();
51  }
52 
55  public void Reset()
56  {
57  baseEnumerator.Reset();
58  }
59 
62  void IEnumerator.Reset()
63  {
64  baseEnumerator.Reset();
65  }
66  }
67 }
void Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
bool MoveNext()
Advances the enumerator to the next element of the collection.
Definition: __Canon.cs:3
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Definition: IEnumerable.cs:9
X509Certificate2 Current
Gets the current element in the T:System.Security.Cryptography.X509Certificates.X509Certificate2Colle...
object Current
Gets the element in the collection at the current position of the enumerator.
Definition: IEnumerator.cs:15
bool MoveNext()
Advances the enumerator to the next element in the T:System.Security.Cryptography....
void Reset()
Sets the enumerator to its initial position, which is before the first element in the T:System....
Supports a simple iteration over a T:System.Security.Cryptography.X509Certificates....
Supports a simple iteration over a non-generic collection.
Definition: IEnumerator.cs:9