LambdaExpression.Compile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces a delegate that represents the lambda expression.
Overloads
Compile() |
Produces a delegate that represents the lambda expression. |
Compile(Boolean) |
Produces an interpreted or compiled delegate that represents the lambda expression. |
Compile(DebugInfoGenerator) |
Produces a delegate that represents the lambda expression. |
Compile()
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
Produces a delegate that represents the lambda expression.
public:
Delegate ^ Compile();
public Delegate Compile ();
member this.Compile : unit -> Delegate
Public Function Compile () As Delegate
Returns
A Delegate that contains the compiled version of the lambda expression.
Remarks
The Compile method can be used to convert a LambdaExpression expression tree into the delegate that it represents.
Applies to
Compile(Boolean)
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
Produces an interpreted or compiled delegate that represents the lambda expression.
public:
Delegate ^ Compile(bool preferInterpretation);
public Delegate Compile (bool preferInterpretation);
member this.Compile : bool -> Delegate
Public Function Compile (preferInterpretation As Boolean) As Delegate
Parameters
- preferInterpretation
- Boolean
true
to indicate that the expression should be compiled to an interpreted form, if it's available; otherwise, false
.
Returns
A delegate that represents the compiled lambda expression described by the LambdaExpression object.
Applies to
Compile(DebugInfoGenerator)
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
- Source:
- LambdaExpression.cs
Produces a delegate that represents the lambda expression.
public:
Delegate ^ Compile(System::Runtime::CompilerServices::DebugInfoGenerator ^ debugInfoGenerator);
public Delegate Compile (System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator);
member this.Compile : System.Runtime.CompilerServices.DebugInfoGenerator -> Delegate
Public Function Compile (debugInfoGenerator As DebugInfoGenerator) As Delegate
Parameters
- debugInfoGenerator
- DebugInfoGenerator
Debugging information generator used by the compiler to mark sequence points and annotate local variables.
Returns
A delegate containing the compiled version of the lambda.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για