Which programming language is this?
public static class StringExtensions
{
public static bool IsBlank(this string s) => string.IsNullOrWhiteSpace(s);
}
public class Downloader
{
public event Action<int>? ProgressChanged;
protected void Report(int pct) => ProgressChanged?.Invoke(pct);
}
Answer: C#
A
Play Programming Languages ▸
this string s extension-method parameter and an event Action<int>? field are C# features with no Java equivalent.