From 042ff147513aaccafce66157aa357e40d7c54247 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 8 Nov 2015 10:16:52 +0700 Subject: Use utility method from Enums to avoid platform-specific code here --- crypto/src/asn1/DerGeneralizedTime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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) { -- cgit 1.5.1