Aller au contenu

Class naming (ARCH001)

Ce contenu n’est pas encore disponible dans votre langue.

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

Class names must follow PascalCase. Consistent naming improves readability and aligns with .NET conventions.

public class order_service
{
public void Process() { }
}
public class OrderService
{
public void Process() { }
}

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