summary refs log tree commit diff
path: root/crypto/src/asn1/DerGeneralizedTime.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-08 10:16:52 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-08 10:16:52 +0700
commit042ff147513aaccafce66157aa357e40d7c54247 (patch)
tree1dc248385fb1eab6ee39baeafa09d36932564308 /crypto/src/asn1/DerGeneralizedTime.cs
parentUpdate to "Null parameters" behaviour from Java 1.53 (diff)
downloadBouncyCastle.NET-ed25519-042ff147513aaccafce66157aa357e40d7c54247.tar.xz
Use utility method from Enums to avoid platform-specific code here
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/DerGeneralizedTime.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerGeneralizedTime.cs b/crypto/src/asn1/DerGeneralizedTime.cs
index 6700b9016..152596678 100644
--- a/crypto/src/asn1/DerGeneralizedTime.cs
+++ b/crypto/src/asn1/DerGeneralizedTime.cs
@@ -267,7 +267,7 @@ namespace Org.BouncyCastle.Asn1
             {
                 try
                 {
-                    style = (DateTimeStyles)Enum.Parse(typeof(DateTimeStyles), "AssumeUniversal");
+                    style = (DateTimeStyles)Enums.GetEnumValue(typeof(DateTimeStyles), "AssumeUniversal");
                 }
                 catch (Exception)
                 {