static void Main(string[] args) { var provider = new NodeProvider(); provider.LoadNodes(null, (list) => Console.WriteLine(string.Join(", ", list.Select(node => node.Name).ToArray()))); Console.ReadLine(); }