C# Class Rebel.Cms.Web.Mvc.ModelBinders.BackOffice.StandardModelBinder

Model binder to inherit from containing utility functions for aiding in model binding
Inheritance: System.Web.Mvc.DefaultModelBinder
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes protégées

Méthode Description
SetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor, object>.Func getValue ) : void

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'.

Method Details

SetPropertyValue() protected méthode

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, PropertyDescriptor propertyDescriptor, object>.Func getValue ) : void
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
propertyDescriptor System.ComponentModel.PropertyDescriptor
getValue object>.Func callback method to get the 'real' value
Résultat void