Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1649: Generic Methods insert params

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
brian_winfield Posted - Oct 27 2008 : 5:59:48 PM
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>
{
}


1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 28 2008 : 12:22:36 PM
A very good point, we are considering doing this:

case=460

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