jeudi 18 avril 2019

How can I find where a static method should have been called?

public void SomeGoodMethod(Cube cube)
{
  Friends.Show(() => cube.Solve());
}

public void SomeBadMethod(Cube cube)
{
  cube.Solve();
}

I know I can find the hundreds of methods which take a Cube parameter with reflection. How can I find the methods which do not call static method: Friends.Show (at design-time or run-time) ?





Aucun commentaire:

Enregistrer un commentaire