GetConstructors() приватный статический Метод

private static GetConstructors ( Type targetType, int arity ) : IList
targetType System.Type
arity int
Результат IList
Пример #1
0
        /// <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);
        }