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
 Feature Requests
 Refactor->Find References with C#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hal
Junior Member

11 Posts

Posted - Jul 04 2013 :  11:48:21 PM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Jul 05 2013 :  4:59:51 PM  Show Profile  Reply with Quote
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";
}

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