From 1e1aa0738aa38d4b9637bfb1bbd5b44042d23ab6 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 25 Dec 2019 13:54:54 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Un-deprecate=20StringExtensions.?= =?UTF-8?q?EnumParse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Humanizer package doesn't necessarily return correct results --- X10D/src/StringExtensions.cs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/X10D/src/StringExtensions.cs b/X10D/src/StringExtensions.cs index e1bc43b..d5eb7c3 100644 --- a/X10D/src/StringExtensions.cs +++ b/X10D/src/StringExtensions.cs @@ -39,13 +39,9 @@ /// /// Parses a into an . /// - /// The type of the Enum - /// String value to parse - /// The Enum corresponding to the stringExtensions - [Obsolete( - "This method has been deprecated in favor of Humanizer.DehumanizeTo(). "+ - "Please consider downloading the Humanizer package for more stable implementations of this method." - )] + /// The type of the . + /// The value to parse + /// The value corresponding to the . public static T EnumParse(this string value) { return value.EnumParse(false); @@ -54,14 +50,10 @@ /// /// Parses a into an . /// - /// The type of the Enum - /// String value to parse + /// The type of the . + /// The value to parse /// Whether or not to ignore casing. - /// The Enum corresponding to the stringExtensions - [Obsolete( - "This method has been deprecated in favor of Humanizer.DehumanizeTo(). " + - "Please consider downloading the Humanizer package for more stable implementations of this method." - )] + /// The value corresponding to the public static T EnumParse(this string value, bool ignoreCase) { if (value == null)