Beispiel #1
0
        private static IConstructorDef ParseConstructorDef(ConstructorDef def, bool isInjectable)
        {
            IList <IConstructorArg> args = new List <IConstructorArg>();

            foreach (ConstructorArg arg in def.args)
            {
                args.Add(new ConstructorArgImpl(arg.full_arg_class_name, arg.named_parameter_name, arg.is_injection_future));
            }
            return(new ConstructorDefImpl(def.full_class_name, args.ToArray(), isInjectable));
        }
Beispiel #2
0
        private static ConstructorDef newConstructorDef(
            string fullClassName, IList <ConstructorArg> args)
        {
            ConstructorDef constDef = new ConstructorDef();

            constDef.full_class_name = fullClassName;
            foreach (ConstructorArg arg in args)
            {
                constDef.args.Add(arg);
            }

            return(constDef);
        }
 private static IConstructorDef ParseConstructorDef(ConstructorDef def, bool isInjectable)
 {
     IList<IConstructorArg> args = new List<IConstructorArg>();
     foreach (ConstructorArg arg in def.args)
     {
         args.Add(new ConstructorArgImpl(arg.full_arg_class_name, arg.named_parameter_name, arg.is_injection_future));
     }
     return new ConstructorDefImpl(def.full_class_name, args.ToArray(), isInjectable);
 }
        private static ConstructorDef newConstructorDef(
             string fullClassName, IList<ConstructorArg> args)
        {
            ConstructorDef constDef = new ConstructorDef();
            constDef.full_class_name = fullClassName;
            foreach (ConstructorArg arg in args)
            {
                constDef.args.Add(arg);
            }

            return constDef;
        }