Is there a (better) way to find all references to a property setter?

前端 未结 2 1842
情书的邮戳
情书的邮戳 2021-01-03 19:23

Visual Studio\'s \"Find All References\" function works nicely for finding references to a property, and as it happens the \"Call Hierarchy\" does this too - it\'s even bet

2条回答
  •  有刺的猬
    2021-01-03 19:59

    Resharper can do that for you.

    Without R#, one way would be to temporarly set the setter to private and recompile. That will give an error everywhere you're trying to set. Not pretty, but faster than any other method I can think of.

提交回复
热议问题