ASP.NET MVC 2 model properties binding order
- by bniwredyc
Is there a way to change order in which the default binder binds property values of model?
For example I have model class A:
class A
{
public string A1 {get; set;}
public string A2 {get; set;}
}
and action DoSomethig:
public ActionResult DoSomething(A model)
{
...
}
I want that A2 property has been bound before the A1 property. Is it possible? Or I need to write custom binder?