Answers for "C# code comment"

C#
1

c# comment

//This Is A Comment
//Comments don't change what
//Happens in the code, but they
//Help you understand your own code,
//So you can make more changes.

//To make a comment, use a "//" then 
//Whatever your comment is.
Posted by: Guest on July-16-2021
0

c# docstring

/// <summary>This method changes the point's location by
///    the given x- and y-offsets.
/// <example>For example:
/// <code>
///    Point p = new Point(3,5);
///    p.Translate(-1,3);
/// </code>
/// results in <c>p</c>'s having the value (2,8).
/// </example>
/// </summary>

public void Translate(int xor, int yor) {
    X += xor;
    Y += yor;
}
Posted by: Guest on April-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language