Answers for "c# doc comments"

C#
1

comments in c#

using System;
					
public class Program
{
	public static void Main()
	{
		//main code starts from here
        //this is how to make a comment in c#
		Console.WriteLine("Hello,World");
		/* this i a multiline comment in c#
		also can continue for several lines 
		until a closing star and slash are encountered */
	}
}
Posted by: Guest on October-30-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