After I updated from 16.9 to 16.10, there was an error in finding all references,
C # in case (int) someenum.none:, find the reference of none in switch () case, the reference number of finding "case (int) someenum.none" will be displayed, with the reference times of 0
In 16.9, it is normal, and all references of someenum.none will be displayed normally
This is repeated as follows
public enum SomeEnum
{
None,
}
public void TestSwitch()
{
var a = (int)SomeEnum.None; // one
swicth(1)
{
case (int)SomeEnum.N one:break; // two
}
}
At this time, if you right-click none in line 1 to find all references, you will find two, 1 and 2.
However, if you right-click none in 2 to find all references, you will find them with the whole tag case (int) someenum. None, and the reference is 0
This is not the case in 16.9
我从16.9更新到16.10以后,查找所有引用出错,
c#中,如果在switch() case中 case (int)SomeEnum.None:, 查找None的引用,就会显示查找“ case (int)SomeEnum.None”这整个标签的引用,引用次数就是0
而在16.9时,就是正常的,会正常显示SomeEnum.None的所有引用
复现如下
public enum SomeEnum
{
None,
}
public void TestSwitch()
{
var a = (int)SomeEnum.None; //1
swicth(1)
{
case (int)SomeEnum.None:break; //2
}
}
这个时候,如果在1行中右键None查找所有引用,就会找到两个,1,2这两个。
但是如果在2中右键None查找所有引用,就会以 case (int)SomeEnum.None 这整个标签查找,引用为0
这个情况在16.9中没有