Follow class naming conventions

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Metadata

ID: csharp-code-style/class-naming-conventions

Language: C#

Severity: Notice

Category: Code Style

Description

Class names should use the PascalCase and start with an uppercase.

Learn More

Non-Compliant Code Examples

class My_Class {
    void SampleMethod();
}
class myClass {
    void SampleMethod();
}
interface myInterface {
    void SampleMethod();
}

Compliant Code Examples

class MyClass {
    void SampleMethod();
}
class MyClass {
    void SampleMethod();
}
https://static.datadoghq.com/static/images/logos/github_avatar.svg https://static.datadoghq.com/static/images/logos/vscode_avatar.svg jetbrains

Seamless integrations. Try Datadog Code Analysis