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
 1649: Generic Methods insert params
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brian_winfield
Senior Member

USA
33 Posts

Posted - Oct 27 2008 :  5:59:48 PM  Show Profile  Reply with Quote
I'm not sure I would characterize this as a bug or more of missing feature. I have "Insert Params" turned on.

Take a class that has a generic method

public class Foobar
        {
            public void Go<T>()
            {

            }
        }


Then when you try to use it:

public void testSomething()
        {

            Foobar foo = new Foobar();

            foo.Go()   // <<-- Puts () instead of a <>()


        }


I would expect if there is only a generic method (no overloads) then it would put insert the brackets <> and params instead of defaulting to just params (which won't compile)

It does handle generics on the class correctly. (When putting a generic on a class definition)

public class Foobar<T>
{
}



Brian S Winfield

Edited by - brian_winfield on Oct 27 2008 6:05:05 PM

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Oct 28 2008 :  12:22:36 PM  Show Profile  Reply with Quote
A very good point, we are considering doing this:

case=460

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