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

RSRP-288337: ReSharper Reports Interface Method as 'Unused' Incorrectly

$
0
0
Reporter Peter Urda (urda) Peter Urda (urda)
Created Feb 16, 2012 2:05:21 AM
Updated Feb 16, 2012 2:05:21 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis - Find Code Issues
Affected versions 6.1
Fixed in build No Fixed in build
I am working on a WCF project, and ReSharper appears to be marking properties of my interface incorrectly. It states that my "Ping" method in the Interface is "unused". Even though the interface is directly inherited from and utilized in a lower class. It complains that a "Type or type member is never used" as a "suggestion". If one was to remove this from the interface as ReSharper suggests, the method would disappear from the WCF server. Ergo, ReSharper shouldn't be suggesting that it should be removed.

Sample below:

Interface
public interface IWcf
{
    [OperationContract]
    string Ping();
}


WcfClass
public class Wcf : IWcf
{
    public string Ping()
    {
        return "pong";
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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