Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#pattern matching switchSingle-choice MCQ

Which value is assigned to size?

object shape = "circle"; int size = shape switch { int n => n, string s => s.Length, _ => -1 };