예제 #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));
        }
예제 #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);
        }
예제 #3
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);
 }
예제 #4
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;
        }