Created
October 25, 2018 22:30
-
-
Save vmandic/47418cfb2312c7169b1020fb68ae8b9d to your computer and use it in GitHub Desktop.
meds-processor, p3, s8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MedsProcessor.Common.Extensions | |
{ | |
public static class EnumExtensions | |
{ | |
public static T2 Parse<T1, T2>(string input) => | |
(T2) System.Enum.Parse(typeof(T1), input); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment