Problem with Resharper inspection

The ReSharper rule (Type or type member is not used) inspection rule is triggering for the following method:

public static void Install<T>()
{
    PerformanceCounterInstaller installer = new PerformanceCounterInstaller(typeof(T));
 
    installer.Register();
}



Is suggesting that there is something wrong with the method.  It wants to remove the method which is public on a public type which fails with "Usage of method ... can not be deleted safely.  I cannot figure out why the rule is triggering here, the type parameter is clearly used in the method and the method is public thus should not cause this rule.  Can someone please clarify, is this a bug or is this rule just supposed to fire when a method is not referenced in the solution or something?

Please sign in to leave a comment.