Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactor->Find References with C#

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
hal Posted - Jul 04 2013 : 11:48:21 PM
Hi.
I works with "dynamic" C# stuff now and I found that "Refactor->Find References" don't search in "dynamic" statements.

If I have constant like
const string SomeConstant = "SomeConstant";


and use it in dynamic statement like:

dynamic value = new Dictionary<string,dynamic>();
value[SomeConstant] = "some";


and when I use "Refactor->Find References" on declaration of SomeConstant, command's results list don't contains usage of SomeConstant on line
value[SomeConstant] = "some";


I suppose that Visual Assist do not parse dynamic stuff.
Cheers.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 05 2013 : 4:59:51 PM
Which IDE and version of VA are you using?

Just making a simple test function, and adding this code to it, Find References is finding both references for me. This is with VS2010 and VA 1946. I am testing with:

void testingFindOnDynamic()
{
    const string SomeConstant = "SomeConstant";
    dynamic value = new Dictionary<string, dynamic>();
    value[SomeConstant] = "some";
}

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