private static GetConstructors ( |
||
targetType | ||
arity | int | |
Результат | IList |
/// <summary> /// Get constructor matching args for type. /// </summary> /// <param name="spanMap"></param> /// <param name="targetType"></param> /// <param name="args"></param> /// <param name="ctorCount"></param> /// <returns></returns> 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); }