.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Threading.Tasks;
					
public class Program
{
	public static void Main()
	{
		Console.WriteLine("Running");
        _ = HitsException();
		System.Threading.Thread.Sleep(1000);
		Console.WriteLine("Quitting");
	}
	
	private static async Task HitsException() {
		string? foo = null;
        foo.ToLower(); // this won't print the exception since we don't await the call
		Console.WriteLine("Code is beyond the exception"); // this won't print
	}
}
;