For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/static_analysis/static_analysis_rules/csharp-code-style/short-class-name.md. A documentation index is available at /llms.txt.
This product is not supported for your selected Datadog site. ().

Metadata

ID: csharp-code-style/short-class-name

Language: C#

Severity: Notice

Category: Code Style

Description

Do not use class names that are too short. Class names should be descriptive of the functionalities of the class.

Learn More

Non-Compliant Code Examples

interface I {
    void SampleMethod();
}
class A {

}

Compliant Code Examples

interface MyInterface {
    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 Security