mirror of
https://github.com/yamakadi/clroxide
synced 2026-06-08 18:28:14 +00:00
26 lines
789 B
C#
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();
|
|
}
|
|
}
|
|
} |