From 72f9474e1c9a1e1ce80adb2c62833848c22ff735 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Mon, 20 Apr 2020 14:13:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=96=20Credit=20original=20author=20of?= =?UTF-8?q?=20string.EnumParse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X10D/src/StringExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/X10D/src/StringExtensions.cs b/X10D/src/StringExtensions.cs index 9b1c1fd..0cc0dea 100644 --- a/X10D/src/StringExtensions.cs +++ b/X10D/src/StringExtensions.cs @@ -71,6 +71,8 @@ /// The type of the . /// The value to parse. /// The value corresponding to the . + /// Credit for this method goes to Scott Dorman: + /// (http://geekswithblogs.net/sdorman/Default.aspx) public static T EnumParse(this string value) { return value.EnumParse(false); @@ -83,6 +85,8 @@ /// The value to parse. /// Whether or not to ignore casing. /// The value corresponding to the . + /// Credit for this method goes to Scott Dorman: + /// (http://geekswithblogs.net/sdorman/Default.aspx) public static T EnumParse(this string value, bool ignoreCase) { if (value is null)