I have the following code:
var obj = new
{
site = new int[]{}
};
UpdateModel(obj, new string[] {"site"}, form.ToValueProvider());
Now when debugging, the form.ToValueProvider() object has a site key in there with some sites that get populated on postback (from a checkbox form with each checkbox name set to "site"). However the site int array property does not get populated and bound when I call the UpdateModel call. Is this a valid and possible use of UpdateModel? Am I missing something or is there another way around it?