Skip to content

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

@DrEsteban

Description

@DrEsteban

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions