Humanizer
Humanizer copied to clipboard
Add TryDehumanizeTo with nullable
Adding a new method to feel slightly cleaner when testing if an enum can be dehumanized.
Addresses https://github.com/Humanizr/Humanizer/issues/769
I believe the failures are because I changed the public API. Will wait to see what I should to fix, if approved.
@adamhathcock LGTM. can you rebase and approve the api change
I recently added the below, which should meet this requirement
public static TTargetEnum? DehumanizeTo<TTargetEnum>(this string input, OnNoMatch onNoMatch = OnNoMatch.ThrowsException)
Thank you @SimonCropp