SmartEnum
SmartEnum copied to clipboard
Fix case insensitive name comparison bug
SmartFlagEnum doesn't use a proper IStringComparer in TryGetFlagEnumValuesByName implementation, hence bugs when using FromName/TryFromName with ignoreCase=true.
Thanks for the PR - can you describe the error and also make the update in such a way that it doesn't cause breaking changes (for instance make your boolean flag an optional parameter)?