Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Extract Method

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
SnowBoy Posted - Aug 30 2006 : 07:42:33 AM
Hi,

I think I've found a bug in "extract method" with C# language.
I've tried it on the following code (it's in bold):

IstanceOf_MyClass = new MyClass( Param ) ;

Here is what I get:

IstanceOf_MyClass = GetMyClassObj( Param ) ; // New function call

MyClass& GetMyClassObj( string Param ) // New function from Visual Assist
{
	return new MyClass( Param );
}

The code above is wrong because the & command doesn't exists in C#.

Thanks, Luca
1   L A T E S T    R E P L I E S    (Newest First)
rhummer Posted - Aug 30 2006 : 6:59:38 PM
Thank you for the clear example.

case=2294

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