Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Find References not fully working in c# sometimes

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
shippy Posted - Jan 11 2022 : 8:15:28 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 12 2022 : 08:29:54 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000