JetBrains Rider 2024.3 Help

Code inspection: Unused parameter in partial method

This inspection detects unused parameters in the implementation parts of a partial method.

Unused method parameters might indicate incomplete or dead code. Follow JetBrains Rider’s suggestion to remove an unused parameter and update usages.

partial class Item { partial void ToCart(int id, int quantity); partial void ToCart(int id, int quantity) { Console.WriteLine($"{id} added to cart"); } }
partial class Item { partial void ToCart(int id); partial void ToCart(int id) { Console.WriteLine($"{id} added to cart"); } }
Last modified: 08 April 2024