static void DoSomethingElseWith(ISomeInterface service) { service.UseCollection(new [] { new Person() { FirstName = "Alice", LastName = "Wonderland", Birthday = new DateTime(1968, 6, 1) }, new Person() { FirstName = "Bob", LastName = "Peanut", Birthday = new DateTime(1972, 9, 13) }, }); }