How to write comments / documentation for variables / fields / lists in VS 2010?

后端 未结 6 1037
挽巷
挽巷 2020-12-15 05:46

There is

///
///This is summary for some class or method
///

documentation for classes or methods. But how t

6条回答
  •  执笔经年
    2020-12-15 06:42

    As others mentioned, you can't get IntelliSense for local vars. However: If your function is so large that a "regular" comment is not close enough to read near the place where you're using the var, then the right fix is to refactor the function -- break it up into multiple, smaller methods, with fewer vars. I don't think this feature should exist, as it would serve only to facilitate writing excessively large functions.

提交回复
热议问题