예제 #1
0
        public Loader(Disp.Internal.Ambiente Ambiente)
        {
            this.Ambiente = Ambiente;

            _commandLibraries = new Dictionary <string, Dictionary <string,
                                                                    IEnumerable <ParameterInfo> > >();

            var q = from t in Assembly.GetExecutingAssembly().GetTypes()  where t.IsClass select t;

            commandClasses = q.ToList();

            foreach (var commandClass in commandClasses)
            {
                var methods          = commandClass.GetMethods(BindingFlags.Instance | BindingFlags.Public);
                var methodDictionary = new Dictionary <string, IEnumerable <ParameterInfo> >();
                foreach (var method in methods)
                {
                    string commandName = method.Name;
                    methodDictionary.Add(commandName, method.GetParameters());
                }

                _commandLibraries.Add(commandClass.Name, methodDictionary);
            }
        }
예제 #2
0
 public DInteger(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
예제 #3
0
 public DispFile(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente == null?new Ambiente(): Ambiente;
 }
예제 #4
0
 public Registry(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
예제 #5
0
 public DMath(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
예제 #6
0
 public DForm(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }