Humanizr / Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Other
8.69k stars 965 forks source link

Question: `Humanize()` vs `Transform()` behavior #1555

Open DrEsteban opened 1 day ago

DrEsteban commented 1 day ago

At the end of the README, there's a little blurb that I'm confused about:

No need to mention that if you want title casing for your labels you can chain the method with Transform:

modelMetadata.DisplayName = modelMetadata.PropertyName.Humanize().Transform(To.TitleCase);

Why is Humanize() called at all here? Is there something Humanize() does that Transform() wouldn't do? For example, does Transform() not perform the enum attribute behavior or something like that?

Thanks for making such a great library!