C#

C#

Made by DeepSource

Names of interfaces must begin with I CS-R1010

Anti-pattern
Minor

The general consensus is that the names of interfaces begin with I. Doing so makes it clearer to the person reading the code that the type being dealt with is an interface thereby giving more context about the code-snippet.

Bad Practice

interface SampleInterface
{
    void SampleMethod();
}

Recommended

interface ISampleInterface
{
    void SampleMethod();
}

Reference