public void PrintHelp(IConsoleModule module) { this.AddLine(this.GetHelpString(string.Empty, module.GetType()).Trim()); this.AddLine("Module methods:"); this.AddHR(); var methods = module.GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); foreach (var method in methods) { if (this.IsValidMethod(method) == false) { continue; } var str = this.GetMethodCallString(method); this.AddLine(this.GetSpace(4) + str); } this.AddHR(); }
public void AddModule(IConsoleModule module) { this.moduleItems.Add(module); }