Code inspection: Convert into static class
This inspection reports a class that behaves like a static holder and can be converted to a static class. This applies when the class has no meaningful instance state and its members are effectively static-compatible.
Example
class A
{
public static void Foo(this int p)
{
}
}
static class A
{
public static void Foo(this int p)
{
}
}
Quick-fix
Convert the class to a static class. When applicable, the fix can also make eligible members static.
30 March 2026