diff options
Diffstat (limited to 'crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs')
-rw-r--r-- | crypto/src/asn1/isismtt/x509/AdmissionSyntax.cs | 9 |
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); } } } |