summary refs log tree commit diff
path: root/crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-14 14:32:40 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-14 14:32:40 +0700
commiteb89e9957f34982f75f36ef237166ccbc2042768 (patch)
tree3166947175b520554f5a8363f75f92ba43794b8f /crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs
parent(D)TLS: Refactoring around CertificateType support (diff)
downloadBouncyCastle.NET-ed25519-eb89e9957f34982f75f36ef237166ccbc2042768.tar.xz
Refactor using MapElements
Diffstat (limited to 'crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs')
-rw-r--r--crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs b/crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs
index 424d73c69..d7f4779d6 100644
--- a/crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs
+++ b/crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs
@@ -261,14 +261,7 @@ namespace Org.BouncyCastle.Asn1.IsisMtt.X509
         */
         public virtual Admissions[] GetContentsOfAdmissions()
         {
-            Admissions[] result = new Admissions[contentsOfAdmissions.Count];
-
-            for (int i = 0; i < contentsOfAdmissions.Count; ++i)
-            {
-                result[i] = Admissions.GetInstance(contentsOfAdmissions[i]);
-            }
-
-            return result;
+            return contentsOfAdmissions.MapElements(Admissions.GetInstance);
         }
     }
 }