HelloWorld/HelloWorld.cs

38 lines
826 B
C#
Raw Normal View History

using System;
2018-11-05 15:35:32 -06: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>
*/
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>
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;
}
}
}