in src/React.Core/TinyIoC/TinyIoC.cs [3946:3969]
private ConstructorInfo GetBestConstructor(Type type, NamedParameterOverloads parameters, ResolveOptions options)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
//#if NETFX_CORE
// if (type.GetTypeInfo().IsValueType)
//#else
if (type.IsValueType())
//#endif
return null;
// Get constructors in reverse order based on the number of parameters
// i.e. be as "greedy" as possible so we satify the most amount of dependencies possible
var ctors = this.GetTypeConstructors(type);
foreach (var ctor in ctors)
{
if (this.CanConstruct(ctor, parameters, options))
return ctor;
}
return null;
}