Exemplo n.º 1
0
 public static void UnregisterCommands <T>(this CommandsNextExtension cNext)
 {
     cNext.UnregisterCommands(cNext
                              .RegisteredCommands
                              .Where(c => c.Value.Module.ModuleType == typeof(T))
                              .Select(c => c.Value)
                              .ToArray());
 }