开发者

"Go To Definition" is greyed out but I can find variable via search in same file

开发者 https://www.devze.com 2023-01-10 17:10 出处:网络
I\'m debugging c# good in vs2008 SP1, .NET Framework 3.5. In a .cs file, I have this code: internal protected bool Refreshing{

I'm debugging c# good in vs2008 SP1, .NET Framework 3.5.

In a .cs file, I have this code:

internal protected bool Refreshing{  
        get { return refreshing;}  
        set { refreshing = value;}  
}  

elsewhere, in the same file, I have this statement:

if (Refreshing) return;  

When I am debugging and right click "Refreshing"开发者_开发百科,

"Go To Definition" is greyed out.

It's not just properties for which "Go To Definition" is greyed out;

it's methods too and probably everything else.

It seems to be "Go To Definition" is especially useful

during debugging; more so than when just looking at code.

Any ideas why?

0

精彩评论

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