> [!NOTE] > The following sample requires C# 8.0 or later.