Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Find References not fully working in c# sometimes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

shippy
Senior Member

USA
30 Posts

Posted - Jan 11 2022 :  8:15:28 PM  Show Profile  Reply with Quote
I have a c# project and recently tried doing a Find References on a task defined like this:

public async Task DoTheThing(bool param1, uint param2, MyClass param3)
{
...impl
}

Right after this are references to it:

[... Multiple custom attributes ...]
public async Task DoTheThingThisWay()
{
await DoTheThing(...);
}

[... Multiple custom attributes ...]
public async Task DoTheThingAnotherWay()
{
await DoTheThing(...);
}

In my case if I try to use Find References on any instance of 'DoTheThing' it only finds the one that invoked it on. It does not find the other two instances like I expect. All of this is in the same file/class/namespace. Could I get help in diagnosing the issue? Thanks.

-Shippy

feline
Whole Tomato Software

United Kingdom
19054 Posts

Posted - Jan 12 2022 :  08:29:54 AM  Show Profile  Reply with Quote
Thank you for the clear sample, it turns out this is a known bug, and its down to the async and await keywords, not the custom attributes:

case=85290

It's not the same, but a normal text find should help in this case. Hopefully you are not running into this to often.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000