diff options
Diffstat (limited to 'crypto/src/asn1/cms/Attributes.cs')
-rw-r--r-- | crypto/src/asn1/cms/Attributes.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/cms/Attributes.cs b/crypto/src/asn1/cms/Attributes.cs index cdcada6dc..00f3b464f 100644 --- a/crypto/src/asn1/cms/Attributes.cs +++ b/crypto/src/asn1/cms/Attributes.cs @@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.Cms return new Attributes(Asn1Set.GetInstance(obj)); } - public static Attributes GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return new Attributes(Asn1Set.GetInstance(taggedObject, declaredExplicit)); - } + public static Attributes GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new Attributes(Asn1Set.GetInstance(taggedObject, declaredExplicit)); + + public static Attributes GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new Attributes(Asn1Set.GetTagged(taggedObject, declaredExplicit)); public static Attributes GetOptional(Asn1Encodable element) { |