using System.Collections.Generic;
var PeopleOnCall = new List<Person>(){
new Person("Ben", "Niederee")
, new Person("Leslie","Kelly")
PrintPeople(PeopleOnCall);
void PrintPeople(List<Person> people)
for(int i = 0;i<people.Count;i++)
Console.WriteLine($"{person.FirstName} is number {i}");
Console.WriteLine(string.Empty);
foreach(var person in people)
Console.WriteLine($"{person}");
public record Person(string FirstName, string LastName);