using System.Collections.Generic;
public static void Main()
new Actor {Name = "Henry Cavill", Age = 39},
new Actor {Name = "Amy Adams", Age = 48},
new Actor {Name = "Kevin Michael Costner", Age = 67}
Name = "The Dark Knight",
new Actor {Name = "Heath Ledger", Age = 43},
new Actor {Name = "Christian Charles Philip Bale", Age = 48},
new Actor {Name = "Gary Leonard Oldman", Age = 64},
new Actor {Name = "Morgan Freeman", Age = 85}
new Actor {Name = "Henry Cavill", Age = 39},
new Actor {Name = "Dwayne Johnson ", Age = 50},
new Actor {Name = "Pierce Brosnan ", Age = 69}
private static void Print(IEnumerable<Actor> actors)
foreach (var actor in actors)
Console.WriteLine($"{actor.Name}, Age:{actor.Age}");
public string Name { get; set; }
public int Age { get; set; }
public string Name { get; set; }
public List<Actor> Actors { get; set; }