Unused parameter (IDE0060)
هذا المحتوى غير متوفر بلغتك بعد.
Key dotnet.codequality.unused-parameter · Severity info · Category codequality
Microsoft code-style analyzer IDE0060. Flags a parameter the method never reads. Callers compute and pass a value that changes nothing.
Incorrect
Section titled “Incorrect”public decimal Tax(Order order, string country) => order.Total * 0.2m;Correct
Section titled “Correct”public decimal Tax(Order order) => order.Total * 0.2m;