Skip to content

override ToString() on IFieldWrapper? #2

@WickyNilliams

Description

@WickyNilliams

Might be worth considering overriding tostring so you don't have to constantly call Render on a field. I can't think off the top of my head any issues this might arise - I never use IFieldWrapper's standard ToString() (which just returns the type name currently) so i don't see why a change like this might be problematic?

That way it can can neatly be used in webforms like:

<%= myItemWrapper.myFieldWrapper %>

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