var dict = new Dictionary<string, string> { ["foo"] = "bar" }; Console.WriteLine($"Value: {dict.GetValueOrDefault("baz", " <none>.")}");