CompiledQuery.Compile<TArg0, TResult> Method (Expression<Func<TArg0, TResult>>)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Compiles the query.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
public static Func<TArg0, TResult> Compile<TArg0, TResult>( Expression<Func<TArg0, TResult>> query ) where TArg0 : DataContext
Type Parameters
- TArg0
Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.
- TResult
The type of T in the System.Collections.Generic.IEnumerable<T> returned when executing the delegate returned by the Compile method.
Parameters
- query
- Type: System.Linq.Expressions.Expression<Func<TArg0, TResult>>
The query expression to be compiled.
Show: