diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 12:47:51 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 12:47:51 +0700 |
commit | 3b73fe21b3de97c0df89fe72109c8450b7242fa7 (patch) | |
tree | 35bc2dbfb5dc40ec05ea7eb5d3a2481d68432582 /crypto/src/asn1/esf/CompleteRevocationRefs.cs | |
parent | Cleanup Platform (diff) | |
download | BouncyCastle.NET-ed25519-3b73fe21b3de97c0df89fe72109c8450b7242fa7.tar.xz |
Use generics instead of dynamic checks
Diffstat (limited to 'crypto/src/asn1/esf/CompleteRevocationRefs.cs')
-rw-r--r-- | crypto/src/asn1/esf/CompleteRevocationRefs.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/esf/CompleteRevocationRefs.cs b/crypto/src/asn1/esf/CompleteRevocationRefs.cs index 348e63fdb..9942cec8f 100644 --- a/crypto/src/asn1/esf/CompleteRevocationRefs.cs +++ b/crypto/src/asn1/esf/CompleteRevocationRefs.cs @@ -1,8 +1,7 @@ using System; -using System.Collections; +using System.Collections.Generic; using Org.BouncyCastle.Utilities; -using Org.BouncyCastle.Utilities.Collections; namespace Org.BouncyCastle.Asn1.Esf { @@ -56,12 +55,10 @@ namespace Org.BouncyCastle.Asn1.Esf } public CompleteRevocationRefs( - IEnumerable crlOcspRefs) + IEnumerable<CrlOcspRef> crlOcspRefs) { if (crlOcspRefs == null) throw new ArgumentNullException("crlOcspRefs"); - if (!CollectionUtilities.CheckElementsAreOfType(crlOcspRefs, typeof(CrlOcspRef))) - throw new ArgumentException("Must contain only 'CrlOcspRef' objects", "crlOcspRefs"); this.crlOcspRefs = new DerSequence( Asn1EncodableVector.FromEnumerable(crlOcspRefs)); |