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
 No listbox if overloads return different types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nels_P_Olsen
Senior Member

USA
47 Posts

Posted - Jan 05 2006 :  3:46:32 PM  Show Profile  Reply with Quote
In C#, if a method or indexer has overloads that return different types, no member listbox appears when typing "." after an expression using that method/indexer.

For example, I have many strongly typed lists and dictionaries that have an indexer returning the collection's required type, as well as the indexer required by IList or IDictionary that returns object.

- Nels

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jan 08 2006 :  12:11:26 PM  Show Profile  Reply with Quote
i need to dig a bit more into this. a couple of days ago i tried this, and it worked in a C# windows program but not when i copied the same two basic overloads into a C# console program, to produce a smaller and simpler test case.

now today i cannot get this to work in the same C# windows program

i am using VS2003 and VA 1418 and VA 1438.

which IDE and version of VA are you using? the next step is to disable VA and see if the IDE can do this on its own, since it is possible the IDE cannot do this at all either.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 08 2006 :  12:15:32 PM  Show Profile  Reply with Quote
Unlike for C++, the content of listboxes in C# is produced by the IDE, not by VA X. (Parsing of C# is relatively easy.) VA X only replaces the listbox itself with one that has coloring, a filtering toolbar, acronyms, etc.

We recommend feline's suggestion to try your example after disabling VA X.
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