Zum Inhalt springen

Method naming (ARCH002)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key dotnet.naming.method-naming · Severity warning · Category naming

Method names must follow PascalCase. This keeps code consistent with .NET library conventions.

public class OrderService
{
public void process_order() { }
}
public class OrderService
{
public void ProcessOrder() { }
}

Rename the method to PascalCase. If needed, suppress the rule per project/workspace via except/ignore.