A method takes IEnumerable<object>. You try to pass a List<string>. What happens?static void Print(IEnumerable<object> items) { } List<string> names = new() { "a", "b" }; Print(names);