Answer the question
In order to leave comments, you need to log in
Is it possible to annotate Visual Studio local variables [not allowed]?
Hello.
?
Answer the question
In order to leave comments, you need to log in
If you mean xml documentation, then you can't.
Local variables are implementation details. Try to give self-documenting names, and additionally accompany complex sections of code with comments.
Well, if only one line comment. In general, this is a very bad practice, because. From the name it should be clear what kind of variable it is and what it is intended for. Well and accordingly some context where this variable is used is necessary. If you have a total or sum
variable declared in the visual form code , for example, then of course it will not be clear why they are here, but if, for example, they are declared in the ORDER class , then it is clear that this is the amount of the order, i.e. we figured it out from the context of the variable declaration...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question