Csharp/C Sharp/Language Basics/Comments — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
| |
Текущая версия на 11:39, 26 мая 2010
Illustrates the use of comments
/*
Mastering Visual C# .NET
by Jason Price, Mike Gunderloy
Publisher: Sybex;
ISBN: 0782129110
*/
/*
Example2_2.cs illustrates the use of comments
*/
public class Example2_2
{
public static void Main()
{
// display "Hello World!" on the screen
System.Console.WriteLine("Hello World!");
}
}
The Hello World! Application with XML Comments
//csc /doc:HelloWorld.xml HelloWorld.cs
/// Here is the comment for the HelloWorld class
class HelloWorld
{
/// Here is the comment for the Main method
static void Main()
{
System.Console.WriteLine("Hello World!");
}
}