Interface object name guide (LC0054)

Interface objects should follow naming conventions that clearly identify them as interfaces. This typically means using a prefix like “I” or a suffix that indicates the interface nature.

Consistent naming makes it easier to identify interfaces at a glance and improves code readability.

Example

The following interface doesn’t follow naming conventions:

interface PaymentProcessor // Interface object name guide [LC0054]
{
}

To fix this, use a consistent naming convention:

interface IPaymentProcessor
{
}