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()); }
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()); }