HelloWorld/HelloWorld.cs

38 lines
824 B
C#
Raw Normal View History

using System;
2018-11-05 15:35:32 -06:00
/*
* File: HelloWorld.cs
2023-10-03 12:43:34 -05:00
*
* Description: This file exemplifies printing 'Hello, World!' in C#.
*
* Package: AniNIX/HelloWorld
2018-11-05 15:35:32 -06:00
* Copyright: WTFPL
2023-10-03 12:43:34 -05:00
*
* Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
2018-11-05 15:35:32 -06:00
*/
namespace AniNIX {
2018-11-05 15:35:32 -06:00
2019-04-15 15:58:35 -05:00
/// This class is used exemplify coding standard in C#.
2018-11-05 15:35:32 -06:00
public sealed class HelloWorld {
2019-04-15 15:58:35 -05:00
// String to print
2023-10-03 12:43:34 -05:00
private static String _helloWorld="Hello, World!";
2019-04-15 15:58:35 -05:00
2018-11-05 15:35:32 -06:00
/// <summary>
2023-10-03 12:43:34 -05:00
/// Print 'Hello, World!'
2018-11-05 15:35:32 -06:00
/// </summary>
2023-10-03 12:43:34 -05:00
public static void PrintHelloWorld() {
2019-04-15 15:58:35 -05:00
Console.WriteLine(_helloWorld);
2018-11-05 15:35:32 -06:00
}
/// <summary>
/// Code entry point
/// </summary>
2018-11-05 15:35:32 -06:00
public static void Main(string[] args) {
HelloWorld.PrintHelloWorld();
return;
}
}
}