internal static ConstructorInfo GetMatchingConstructor(IPersistentMap spanMap, Type targetType, IList<HostArg> args, out int ctorCount)
{
IList<MethodBase> methods = Reflector.GetConstructors(targetType, args.Count);
ctorCount = methods.Count;
MethodBase method = GetMatchingMethodAux(targetType, args, methods, "_ctor", true);
// Because no-arg c-tors for value types are handled elsewhere, we defer the warning to there.
return (ConstructorInfo)method;
}