METHOD
Enumerable.Select
Projects each input to one result. Representative overload.
Formal Syntax & Structure
csharp syntaxcsharp
IEnumerable<TResult> Select<T,TResult>(IEnumerable<T> source, Func<T,TResult> selector)Working Example
Example Snippetcsharp
using System;using System.Linq;var labels = new[] {1,2}.Select(n => n * 10);