using System.Collections.Generic;
public static void Main()
var testList = new List<string>();
testList.Add("testtest");
testList.Add("testtest");
var result = testList.FirstOrDefault(
Console.WriteLine("X is true!");
Console.WriteLine("X is still true but we haven't called it again");
Console.WriteLine("Result is {0}", result);
static bool IsTest(string input)
Console.WriteLine("We're testing if the input string is equal to testtest");
return input == "testtest";