8

In Visual Studio 2017 Enterprise, I noticed that for any class properties (w/ get/set), the Code Lens lists the number of references right above the property. But for class fields, this is not true. Here's a screen shot:

enter image description here

Does anyone know why? Or how I can get Visual Studio to also list references for fields?

jbyrd
  • 5,287
  • 7
  • 52
  • 86
  • 3
    You can always right click and select Find All References for fields. – Mike Cheel Sep 28 '17 at 15:47
  • 2
    I guess this is because of performance reasons. Most of the time you dont have or change sooo much references for propertys, but fields are used very often (even more by compiler generated code). Maniging such a huge map of references should be perf crititcal. – BudBrot Sep 28 '17 at 17:13

0 Answers0