how to add comments referring to a piece of code or #region in visual studio
I have a piece of code, say an if-condition on line 2000. This code completely depends upon the output from another piece of code on line 1000. So I need to write a comment on line 2000 to refer to line 1000.
So, how can I write a cref kind of comment on line 2000 in order to click and navigate to the line 1000?
Eg.,
ln 1000
int count = 100;
count += some-condition;
ln 2000
if (count-condition)
{
statement;//this condition depends on the piece of code on **ln 1000 or region**
}