GetEnumerator() публичный Метод

public GetEnumerator ( ) : System.Security.Cryptography.AsnEncodedDataEnumerator
Результат System.Security.Cryptography.AsnEncodedDataEnumerator
Пример #1
0
 public CryptographicAttributeObject(System.Security.Cryptography.Oid oid, AsnEncodedDataCollection values)
 {
     this.m_oid = new System.Security.Cryptography.Oid(oid);
     if (values == null)
     {
         this.m_values = new AsnEncodedDataCollection();
     }
     else
     {
         AsnEncodedDataEnumerator enumerator = values.GetEnumerator();
         while (enumerator.MoveNext())
         {
             if (string.Compare(enumerator.Current.Oid.Value, oid.Value, StringComparison.Ordinal) != 0)
             {
                 throw new InvalidOperationException(SecurityResources.GetResourceString("InvalidOperation_DuplicateItemNotAllowed"));
             }
         }
         this.m_values = values;
     }
 }
 public CryptographicAttributeObject(System.Security.Cryptography.Oid oid, AsnEncodedDataCollection values)
 {
     this.m_oid = new System.Security.Cryptography.Oid(oid);
     if (values == null)
     {
         this.m_values = new AsnEncodedDataCollection();
     }
     else
     {
         AsnEncodedDataEnumerator enumerator = values.GetEnumerator();
         while (enumerator.MoveNext())
         {
             if (string.Compare(enumerator.Current.Oid.Value, oid.Value, StringComparison.Ordinal) != 0)
             {
                 throw new InvalidOperationException(SecurityResources.GetResourceString("InvalidOperation_DuplicateItemNotAllowed"));
             }
         }
         this.m_values = values;
     }
 }