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

In a project with nullable reference types enabled (<Nullable>enable</Nullable>), what does this method's signature express, and what does the compiler do at the marked line?

public string? Find(string key) { string? result = Lookup(key); return result; } string upper = Find("a").ToUpper(); // marked line