summary refs log tree commit diff
path: root/crypto/src/asn1/x509/DistributionPointName.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/DistributionPointName.cs')
-rw-r--r--crypto/src/asn1/x509/DistributionPointName.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/x509/DistributionPointName.cs b/crypto/src/asn1/x509/DistributionPointName.cs
index 1c0455413..274898a3a 100644
--- a/crypto/src/asn1/x509/DistributionPointName.cs
+++ b/crypto/src/asn1/x509/DistributionPointName.cs
@@ -27,10 +27,11 @@ namespace Org.BouncyCastle.Asn1.X509
             return new DistributionPointName(Asn1TaggedObject.GetInstance(obj));
 		}
 
-		public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly)
-        {
-            return Asn1Utilities.GetInstanceFromChoice(obj, explicitly, GetInstance);
-        }
+		public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly) =>
+            Asn1Utilities.GetInstanceChoice(obj, explicitly, GetInstance);
+
+        public static DistributionPointName GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance);
 
         private readonly int m_type;
         private readonly Asn1Encodable m_name;