Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#reflection and attributesSingle-choice MCQ

What does typeof(List<int>).GetGenericTypeDefinition() return, and how does it relate to typeof(List<>)?

Type a = typeof(List<int>).GetGenericTypeDefinition(); Type b = typeof(List<>);