2018-10-24 10:17:52 -05:00
|
|
|
using System;
|
|
|
|
|
2018-11-05 15:35:32 -06:00
|
|
|
/*
|
2019-04-15 16:21:46 -05:00
|
|
|
* File: HelloWorld.cs
|
2018-11-05 15:35:32 -06:00
|
|
|
*
|
|
|
|
* Description: This file exemplifies printing 'Hello world!' in C#.
|
|
|
|
*
|
|
|
|
* Package: AniNIX::Foundation/HelloWorld
|
|
|
|
* Copyright: WTFPL
|
|
|
|
*
|
|
|
|
* Author: DarkFeather <darkfeather@aninix.net>
|
|
|
|
*/
|
|
|
|
|
2018-10-24 10:17:52 -05: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
|
|
|
|
private static String _helloWorld="Hello world!";
|
|
|
|
|
2018-11-05 15:35:32 -06:00
|
|
|
/// <summary>
|
|
|
|
/// Print 'Hello world!'
|
|
|
|
/// </summary>
|
2019-04-15 14:53:57 -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
|
|
|
}
|
|
|
|
|
2019-04-15 14:53:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Code entry point
|
|
|
|
/// </summary>
|
2018-11-05 15:35:32 -06:00
|
|
|
public static void Main(string[] args) {
|
|
|
|
HelloWorld.PrintHelloWorld();
|
|
|
|
return;
|
|
|
|
}
|
2018-10-24 10:17:52 -05:00
|
|
|
}
|
|
|
|
}
|