SmartEnum icon indicating copy to clipboard operation
SmartEnum copied to clipboard

Fix case insensitive name comparison bug

Open xczdbb opened this issue 1 year ago • 1 comments

SmartFlagEnum doesn't use a proper IStringComparer in TryGetFlagEnumValuesByName implementation, hence bugs when using FromName/TryFromName with ignoreCase=true.

xczdbb avatar Jul 15 '24 09:07 xczdbb

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)?

ardalis avatar Jul 26 '24 19:07 ardalis