تخطَّ إلى المحتوى

Method naming (ARCH002)

هذا المحتوى غير متوفر بلغتك بعد.

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.