메소드 | 설명 | |
---|---|---|
SetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
Method to get the attempted value for the property and to execute the callback method to retreive the 'real' value, then set the property whilst executing the correct events. The event order is based on how the DefaultModelBinder sets properties so figured I'd go with these 'best practices'.
|
protected SetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
getValue | object>.Func | callback method to get the 'real' value |
리턴 | void |