开发者

Force redundant name qualifier for static methods in Resharper

开发者 https://www.devze.com 2023-03-16 04:59 出处:网络
I know I can force \"this.\" qualifier for instance member with Resharper code cleanup. Can I force开发者_如何学C redundant name qualifier for static methods?

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

Can I force开发者_如何学C 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()
    {

    }
}


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

0

精彩评论

暂无评论...
验证码 换一张
取 消