Files
yamakadi-clroxide/test/source/WithExit/Program.cs
T
2023-03-25 11:49:02 +09:00

26 lines
789 B
C#

using System;
using System.Reflection;
using System.Threading;
namespace WithExit
{
internal class Program
{
public static void Main(string[] args)
{
Console.WriteLine($"[*] Hello World from `{Assembly.GetExecutingAssembly().FullName}`!");
Console.WriteLine($"[*] I am running in `{AppDomain.CurrentDomain}`!");
Console.WriteLine("[*] I very much hope to live past `System.Environment.Exit`!");
Console.WriteLine();
Environment.Exit(-1);
Console.WriteLine("[!] I am still alive!");
Console.Error.WriteLine("[!] If I had any errors, they would be here, in `stderr`!");
Console.WriteLine("[*] Bye!");
Console.WriteLine();
}
}
}