Net 4.0 Framework _best_ < LATEST >
// 2. Using Tuple Tuple<int, string, bool> person = Tuple.Create(1, "John Doe", true); Console.WriteLine($"ID: {person.Item1}, Name: {person.Item2}, Active: {person.Item3}");
// 4. LINQ to Objects (fully supported) var numbers = new List<int> { 1, 2, 3, 4, 5 }; var evenNumbers = numbers.Where(n => n % 2 == 0).ToList(); Console.WriteLine($"Even numbers: {string.Join(",", evenNumbers)}"); net 4.0 framework
Here’s a short, ready-to-use code piece for (C#) that demonstrates a few common tasks supported in that version: // 2. Using Tuple Tuple<

Comments
You are not logged in. Log-in to leave a comment.