我正在使用 ReSharper 9.2(暂时坚持使用此版本)并且我有一个案例,对我们来说很常见,其中“转到实施”不起作用。更糟糕的是,你会认为真的没有实现。
这是此行为的示例:
public interface ITest<in TFrom, out TTo>
{
TTo SomeMethod(TFrom inp);
}
public interface ISpecialTest : ITest<string, int>
{
void AnotherMethod();
}
public class Implementation : ISpecialTest
{
public int SomeMethod(string inp)
{
return 0;
}
public void AnotherMethod()
{
}
}
private static void Main(string[] args)
{
ISpecialTest t = new Implementation();
t.SomeMethod("test"); // Resharper"Go to implementation" does NOT work
t.AnotherMethod(); // Resharper"Go to implementation" DOES work
}
是否有人遇到相同的行为,并且可能知道是否在新版本中修复了这个问题,或者更好的是,在 Resharper 的 9.2 版中以某种方式修复它?