private static ParameterDescriptor CreateParameterDescriptor(PropertyModel propertyModel) { var parameterDescriptor = new ControllerBoundPropertyDescriptor() { BindingInfo = propertyModel.BindingInfo, Name = propertyModel.PropertyName, ParameterType = propertyModel.PropertyInfo.PropertyType, PropertyInfo = propertyModel.PropertyInfo, }; return(parameterDescriptor); }