SyntaxFix
Write A Post
Hire A Developer
Questions
Is this what you're asking for?
int[] numbers = { 1, 2, 3 }; numbers.ToList().ForEach(n => Console.WriteLine(n));