Closed GoogleCodeExporter closed 8 years ago
Original comment by travis.illig
on 21 Sep 2012 at 4:36
This issue was closed by revision 8767b8b4af03.
Original comment by travis.illig
on 8 Oct 2012 at 11:20
Per https://groups.google.com/d/msg/autofac/-/YilK3MhfdUsJ it appears there may
need to be a fix made. Post contents:
The current implementation causes parameters of type string to not be handled
by the DefaultModelBinder. The CanBeActivated method should also return true
for strings and types convertible from strings.
if (type.IsValueType || type == typeof(string))
{
// All value types can go through Activator.CreateInstance(type)
return true;
}
var typeConverter = TypeDescriptor.GetConverter(type);
if (typeConverter.CanConvertFrom(typeof(string)))
{
return true;
}
Original comment by travis.illig
on 17 Nov 2012 at 4:37
Original comment by travis.illig
on 17 Nov 2012 at 4:38
Original comment by travis.illig
on 26 Nov 2012 at 9:42
This issue was closed by revision 6d4bf71cc47a.
Original comment by travis.illig
on 26 Nov 2012 at 11:58
I think it will never work that way :) Currently,
IEnumerable<HttpPostedFileBase> is not handled by the DefaultModelBinder
because ResolveOptional returns empty enumeration (not null).
Original comment by du...@djanosik.cz
on 17 Jan 2013 at 4:09
If you have found something not working, please file an additional issue with
some details about reproduction and what you expect to happen. Thanks!
Original comment by travis.illig
on 17 Jan 2013 at 4:14
Original issue reported on code.google.com by
travis.illig
on 17 May 2012 at 7:31