Home

Castle Stronghold

Creating bindable parameters

When an action is invoked on a controller that extends SmartDispatcherController, it inspects the parameters for attributes that implement IParameterBinder. The DataBindAttribute for exemple is one of these attributes.

This allow you to create binding logic, or add validation or anything that you want. You just need to create an attribute that applies to method arguments and implements the IParameterBinder

Google
Search WWW Search castleproject.org