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
 Extract Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SnowBoy
Senior Member

Italy
32 Posts

Posted - Aug 30 2006 :  07:42:33 AM  Show Profile  Reply with Quote
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

Edited by - SnowBoy on Aug 30 2006 07:45:05 AM

rhummer
Tomato Guru

USA
527 Posts

Posted - Aug 30 2006 :  6:59:38 PM  Show Profile  Reply with Quote
Thank you for the clear example.

case=2294

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

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