Resharper 6.0 - 上下文操作会丢弃注释

时间:2011-11-10 10:40:14

标签: resharper

当调用转换if if switch 等上下文操作时,我的所有注释都将丢失。这可以预防吗?

e.g:

        int a = 1;
        int i;
        if (a == 1)
            //comment I want to keep 1
            i = 1;
        else if (a == 2)
            //comment I want to keep 2
            i = 2;
        else
            i = 3;

1 个答案:

答案 0 :(得分:0)