Example #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);
            }
        }
Example #2
0
 public DInteger(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
Example #3
0
 public DispFile(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente == null?new Ambiente(): Ambiente;
 }
Example #4
0
 public Registry(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
Example #5
0
 public DMath(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }
Example #6
0
 public DForm(Disp.Internal.Ambiente Ambiente)
 {
     this.Ambiente = Ambiente;
 }