Bug 5942 - Renaming delegates using refactor causes delegate type to disappear and extra info to be added
Summary: Renaming delegates using refactor causes delegate type to disappear and extra...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-07-01 23:39 UTC by Rick Hutcheson
Modified: 2012-07-02 03:03 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rick Hutcheson 2012-07-01 23:39:48 UTC
When renaming a delegate with the refactor command, the type and any modifiers disappears.

Steps to reproduce:
1.Create delegate such as:
public delegate void MessageReceivedEventHandler(
object sender, MessageReceivedEventArgs e) 

2. Refactor ->rename to MessageReceivedEventHandler

3. Declaration will now be: 
object sender, MessageReceivedEventArgs e) 

(Notice both the missing modifiers and the extra "dler" on the name)
Comment 1 Rick Hutcheson 2012-07-01 23:44:35 UTC
Note in "Steps to reproduce", the first line should be:

Create delegate such as:
public delegate void MessageAvailableEventHandler(
object sender, MessageReceivedEventArgs e)
Comment 2 Mike Krüger 2012-07-02 03:03:31 UTC