summary refs log tree commit diff
path: root/crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs')
-rw-r--r--crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs b/crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs
index a90a33ae2..61f55af87 100644
--- a/crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs
+++ b/crypto/src/asn1/x509/qualified/Iso4217CurrencyCode.cs
@@ -48,7 +48,13 @@ namespace Org.BouncyCastle.Asn1.X509.Qualified
 			throw new ArgumentException("unknown object in GetInstance: " + Platform.GetTypeName(obj), "obj");
         }
 
-		public Iso4217CurrencyCode(
+        public static Iso4217CurrencyCode GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance);
+
+        public static Iso4217CurrencyCode GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance);
+
+        public Iso4217CurrencyCode(
             int numeric)
         {
             if (numeric > NumericMaxSize || numeric < NumericMinSize)