This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

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

PREVIEWING: Cyril-Bouchiat/add-vm-package-explorer-doc