Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force redundant name qualifier for static methods in Resharper

Tags:

c#

resharper

I know I can force "this." qualifier for instance member with Resharper code cleanup.

Can I force redundant name qualifier for static methods?

public class Foo
{
    public void Bar()
    {
        StaticMethod();
    }

    private static void StaticMethod()
    {

    }
}

Would be forced to this:

public class Foo
{
    public void Bar()
    {
        Foo.StaticMethod();
    }

    private static void StaticMethod()
    {

    }
}
like image 920
mll Avatar asked Jun 28 '11 21:06

mll


1 Answers

I don't see any way to do this in ReSharper 5.x, and have seen nothing about it in 6.x EAP/Beta releases, but don't have an instance of 6.x to verify.

You could suggest it as a feature in JetBrains' issue tracker: http://confluence.jetbrains.net/display/ReSharper/ReSharper+Issue+Tracker

like image 158
Jay Avatar answered Sep 28 '22 07:09

Jay