ReSharper: Find Usages of an optional parameter

冷暖自知 提交于 2019-12-05 00:00:20

With your cursor on the parameter, choose ReSharper | Inspect | Value Origin, or from the keyboard, Inspect This with Ctrl+Shift+Alt+A, then Value Origin.

You will get an Inspection Results window with all the places that explicitly assign that parameter a value.

I think the best way is changing Signature of the method. In other word you can change type of the parameter to another type (that is not used by parameters for safety) and see Errors list after rebuild. By this way you can find all (not only explicitly) usages of the parameter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!