Reporter | 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.
{
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.