Select()
// Some code IEnumerable<string> strings = new List<string> { "one", "two", "three", "four" }; // Will return { 3, 3, 5, 4 } IEnumerable<int> result = strings.Select(str => str.Length);
Last updated 2 years ago