c# - Detect Usage of Specific Methods -
in visual studio know whether code in project uses methods. example, know "==" being used in string comparisons, have team rule ".equals" should used when comparing strings.
do tools exist accomplish goal?
given following code block
var x = "s" == "a"; var y = 1 == 2; var z = "a" == "b";
if right-click on first ==
, click find usage
, following results.
if right-click on second ==
, click find usage
, tool-tip states this usage
.
i'm not sure features has, there new free command-line version of resharper.
http://www.jetbrains.com/resharper/features/command-line.html
Comments
Post a Comment