using System.Collections.Generic;
private static void Main(string[] args)
var output = new List<string>();
var executing = Execute(null);
output.Add(executing ? "always" : "never");
if (!executing) output.Add("look");
executing = Execute(false);
throw new NullReferenceException(Execute(false) ? "in" : "out");
executing = Execute(true);
catch (NullReferenceException)
output.Add(executing ? "take" : "give");
catch (Exception exception)
output.Add(exception.Message);
if (!executing) output.Add("out");
Console.WriteLine(GetResult(output));
public static string GetResult(IEnumerable<string> source) => string.Join(@" ", source);
private static bool Execute(bool? current = true) => current == true;