diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 10:16:52 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 10:16:52 +0700 |
commit | 042ff147513aaccafce66157aa357e40d7c54247 (patch) | |
tree | 1dc248385fb1eab6ee39baeafa09d36932564308 /crypto/src/asn1/DerGeneralizedTime.cs | |
parent | Update to "Null parameters" behaviour from Java 1.53 (diff) | |
download | BouncyCastle.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.cs | 2 |
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) { |