2021.3/CodeAnalysis/CodeForCSharpDemo.cs (14 lines of code) (raw):

namespace DemoProject; #nullable enable public class CodeForCSharpDemo { //Paste this method to the CSharpDemo class public string? FindFirstElement(IEnumerable<string?> collection, string? filterParam, Func<string?, string?, bool> predicate) { foreach (var element in collection) { if (predicate(element, filterParam)) return element; } return null; } }