Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-275926: Create parameter 'ParameterName' in containing method and update hierarchy fails

$
0
0
Reporter Jarmo Poolak (JPollack) Jarmo Poolak (JPollack)
Created Sep 21, 2011 2:57:50 PM
Updated Apr 13, 2018 10:08:23 PM
Resolved Apr 13, 2018 10:08:23 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions 2018.1, 6.0 EAP
Fixed In Version ReSharper Undefined
VsVersion All Versions
public interface IUdpClient
{
void Listen(int listenPort);
}
    
    public class UdpClientWrapper : IUdpClient{
protected UdpClient UdpClient { get; set; }

        public void Listen(int listenPort)
{
            // Refactor: Create parameter 'OnEndReceive'
            // in containing method and update hierarchy
UdpClient.BeginReceive(OnEndReceive, messageState);
}
    }

Refactor: 'Create parameter 'OnEndReceive' in containing method and update hierarchy'

Updates the method signature:
public void Listen(int listenPort, AsyncCallback onEndReceive)

It adds the last method parameter as 'onEndReceive' but AFAIK it should be 'OnEndReceive' (with capitalized 'O').

However, refactor 'Create parameter 'OnEndReceive' in containing' gives expected result.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>