Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#covariance and contravarianceSingle-choice MCQ

Why can a method group be assigned here even though the signatures don't match exactly?

static void Handle(object o) { } static string Make() => "x"; Action<string> a = Handle; // line 1 Func<object> f = Make; // line 2