Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override ToString() on IFieldWrapper? #2

Open
WickyNilliams opened this issue Sep 10, 2013 · 0 comments
Open

override ToString() on IFieldWrapper? #2

WickyNilliams opened this issue Sep 10, 2013 · 0 comments

Comments

@WickyNilliams
Copy link

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 %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant