QueryableExtensionsSelect Method |
Projects each element of a sequence into a new form.
Namespace: Kettic.AspNet.Data.ExtensionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic static IQueryable Select(
this IQueryable source,
LambdaExpression selector
)
<ExtensionAttribute>
Public Shared Function Select (
source As IQueryable,
selector As LambdaExpression
) As IQueryable
public:
[ExtensionAttribute]
static IQueryable^ Select(
IQueryable^ source,
LambdaExpression^ selector
)
static member Select :
source : IQueryable *
selector : LambdaExpression -> IQueryable
Parameters
- source
- Type: System.LinqIQueryable
A sequence of values to project. - selector
- Type: System.Linq.ExpressionsLambdaExpression
A projection function to apply to each element.
Return Value
Type:
IQueryable
An
IQueryable whose elements are the result of invoking a
projection selector on each element of
source.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also