diff options
Diffstat (limited to 'crypto/src/asn1/x509/NoticeReference.cs')
-rw-r--r-- | crypto/src/asn1/x509/NoticeReference.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/src/asn1/x509/NoticeReference.cs b/crypto/src/asn1/x509/NoticeReference.cs index 2fb275d8f..22bb35b71 100644 --- a/crypto/src/asn1/x509/NoticeReference.cs +++ b/crypto/src/asn1/x509/NoticeReference.cs @@ -120,14 +120,7 @@ namespace Org.BouncyCastle.Asn1.X509 public virtual DerInteger[] GetNoticeNumbers() { - DerInteger[] tmp = new DerInteger[noticeNumbers.Count]; - - for (int i = 0; i != noticeNumbers.Count; ++i) - { - tmp[i] = DerInteger.GetInstance(noticeNumbers[i]); - } - - return tmp; + return noticeNumbers.MapElements(DerInteger.GetInstance); } /** |