diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-24 13:32:00 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-24 13:32:00 +0700 |
commit | 819766af5799a0c6563edaa6cc000957e40c9a69 (patch) | |
tree | b012915a39364d8f453c03d0db88dcb0e8666b35 /crypto/src/cms/SignerInformationStore.cs | |
parent | Implement IEnumerable in CMS stores (diff) | |
download | BouncyCastle.NET-ed25519-819766af5799a0c6563edaa6cc000957e40c9a69.tar.xz |
Refactoring in CMS stores
Diffstat (limited to '')
-rw-r--r-- | crypto/src/cms/SignerInformationStore.cs | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/crypto/src/cms/SignerInformationStore.cs b/crypto/src/cms/SignerInformationStore.cs index 00919c221..eb0dce6cf 100644 --- a/crypto/src/cms/SignerInformationStore.cs +++ b/crypto/src/cms/SignerInformationStore.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; namespace Org.BouncyCastle.Cms @@ -64,16 +63,10 @@ namespace Org.BouncyCastle.Cms } /// <summary>The number of signers in the collection.</summary> - public int Count - { - get { return m_all.Count; } - } + public int Count => m_all.Count; /// <returns>An ICollection of all signers in the collection</returns> - public IList<SignerInformation> GetSigners() - { - return new List<SignerInformation>(m_all); - } + public IList<SignerInformation> GetSigners() => new List<SignerInformation>(m_all); /** * Return possible empty collection with signers matching the passed in SignerID @@ -89,14 +82,8 @@ namespace Org.BouncyCastle.Cms return new List<SignerInformation>(0); } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); - public virtual IEnumerator<SignerInformation> GetEnumerator() - { - return GetSigners().GetEnumerator(); - } + public IEnumerator<SignerInformation> GetEnumerator() => GetSigners().GetEnumerator(); } } |