Hi,
While reading through ScottGu's announcement of MVC 2 Preview 1 I found this
new feature interesting:

public void Browse([DefaultValue(1)] int page)

{



}


After reading Ken Egozi's blogpost about writing a custom parameter binder (
http://www.kenegozi.com/blog/2008/09/15/creating-a-custom-parameter-binder-for-monorail-actions-iparameterbinder.aspx)
I
figured it shouldn't be that hard to implement this for MonoRail too (as far
as I could see MR has no such thing right now except for defaults through
routing).

So I did adapt his sample to allow for the exact same syntax as in MVC 2.

I'd like to hear your comments on the code.

greetings Daniel
http://www.tigraine.at

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: DefaultValueAttribute.cs
Description: Binary data

Reply via email to