Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#nullable reference typesSingle-choice MCQ

What is the effect of the [NotNullWhen(true)] attribute on a TryParse-style method's out parameter?

public static bool TryGet(string key, [NotNullWhen(true)] out string? value) { /* ... */ }