B
Billy
Anybody know how I can set environment in C# so that when you will
press "-" sign in front XML doc comment (///) it will collapse like in
VB.NET, With that i mean you will see only summary text and not only
<summary> tag.
Let me show example and results in both languages.
In VB.NET:
''' <summary>
''' Add two whole numbers
''' </summary>
''' <param name="intNr1">First number</param>
''' <param name="intNr2">Second number</param>
''' <returns></returns>
''' <remarks></remarks>
Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As
Integer) As Integer
Return intNr1 + intNr2
End Function
when I press "-" to collapse comment I get nicely only this row above
procedure:
Add two whole numbers
Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As Integer)
As Integer
Return intNr1 + intNr2
End Function
But for same procedure in C#:
/// <summary>
/// Add two whole numbers
/// </summary>
/// <param name="intNr1">First number</param>
/// <param name="intNr2">Second number</param>
/// <returns></returns>
/// <remarks></remarks>
public int AddNumbers(int intNr1, int intNr2)
{
return intNr1 + intNr2;
}
when I press "-" next to the comment I get this:
/// <summary> ...
public int AddNumbers(int intNr1, int intNr2)
{
return intNr1 + intNr2;
}
So what is the point of collapsing of such comment in C# if you cannot
see at the top what is the most important when you collapse comment?
So my quesitons is: How to see same summary also in C# like it is in
VB.NET?
press "-" sign in front XML doc comment (///) it will collapse like in
VB.NET, With that i mean you will see only summary text and not only
<summary> tag.
Let me show example and results in both languages.
In VB.NET:
''' <summary>
''' Add two whole numbers
''' </summary>
''' <param name="intNr1">First number</param>
''' <param name="intNr2">Second number</param>
''' <returns></returns>
''' <remarks></remarks>
Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As
Integer) As Integer
Return intNr1 + intNr2
End Function
when I press "-" to collapse comment I get nicely only this row above
procedure:
Add two whole numbers
Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As Integer)
As Integer
Return intNr1 + intNr2
End Function
But for same procedure in C#:
/// <summary>
/// Add two whole numbers
/// </summary>
/// <param name="intNr1">First number</param>
/// <param name="intNr2">Second number</param>
/// <returns></returns>
/// <remarks></remarks>
public int AddNumbers(int intNr1, int intNr2)
{
return intNr1 + intNr2;
}
when I press "-" next to the comment I get this:
/// <summary> ...
public int AddNumbers(int intNr1, int intNr2)
{
return intNr1 + intNr2;
}
So what is the point of collapsing of such comment in C# if you cannot
see at the top what is the most important when you collapse comment?
So my quesitons is: How to see same summary also in C# like it is in
VB.NET?