clojure.lang.Reflector.GetMatchingConstructor C# (CSharp) Метод

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

Get constructor matching args for type.
static private GetMatchingConstructor ( IPersistentMap spanMap, Type targetType, IList args, int &ctorCount ) : ConstructorInfo
spanMap IPersistentMap
targetType System.Type
args IList
ctorCount int
Результат System.Reflection.ConstructorInfo
        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;
        }