Command.Command.Command C# (CSharp) Method

Command() public method

public Command ( Type t, MethodInfo mi, CommandAttribute attr ) : System
t Type
mi MethodInfo
attr CommandAttribute
return System
        public Command(Type t, MethodInfo mi, CommandAttribute attr)
        {
            this.MethodInfo = mi;
            this.Type = t;
            this.CommandAttribute = attr;

            _log.DebugFormat("Found command {0}", this.Name);

            foreach(var pi in mi.GetParameters()) {
                var param = new CommandParameter(pi);
                _log.DebugFormat("Found parameter {0}", param);
                this.Parameters.Add(param);
            }
        }