summary refs log tree commit diff
path: root/crypto/src/asn1/x509/GeneralName.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/GeneralName.cs')
-rw-r--r--crypto/src/asn1/x509/GeneralName.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/x509/GeneralName.cs b/crypto/src/asn1/x509/GeneralName.cs
index 3f5a35d37..08f85bb8e 100644
--- a/crypto/src/asn1/x509/GeneralName.cs
+++ b/crypto/src/asn1/x509/GeneralName.cs
@@ -53,10 +53,11 @@ namespace Org.BouncyCastle.Asn1.X509
 			return GetInstanceSelection(Asn1TaggedObject.GetInstance(obj));
 		}
 
-		public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly)
-        {
-            return Asn1Utilities.GetInstanceFromChoice(tagObj, explicitly, GetInstance);
-        }
+		public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly) =>
+            Asn1Utilities.GetInstanceChoice(tagObj, explicitly, GetInstance);
+
+        public static GeneralName GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance);
 
         private static GeneralName GetInstanceSelection(Asn1TaggedObject taggedObject)
 		{