Esempio n. 1
0
 /// <summary>
 /// Translates the given Linq <paramref name="expression"/> to a source-code string.
 /// </summary>
 /// <param name="expression">The Expression to translate.</param>
 /// <param name="configuration">The configuration to use for the translation, if required.</param>
 /// <returns>The translated <paramref name="expression"/>.</returns>
 public static string ToReadableString(
     this LinqExpression expression,
     Func <TranslationSettings, TranslationSettings> configuration = null)
 {
     return(LinqExpressionToDlrExpressionConverter
            .Convert(expression)
            .ToReadableString(configuration));
 }
 public static Expression ToDlrExpression(this LinqExp.Expression linqExpression)
 => LinqExpressionToDlrExpressionConverter.Convert(linqExpression);
 public static Expression <TDelegate> ToDlrExpression <TDelegate>(this LinqExp.Expression <TDelegate> linqLambda)
 => (Expression <TDelegate>)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 public static LambdaExpression ToDlrExpression(this LinqExp.LambdaExpression linqLambda)
 => LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 protected static LambdaExpression CreateLambda <TArg1, TArg2, TArg3, TReturn>(LinqExp.Expression <Func <TArg1, TArg2, TArg3, TReturn> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 internal static LambdaExpression CreateLambda <TReturn>(LinqExp.Expression <Func <TReturn> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 protected static LambdaExpression CreateLambda <TArg1, TArg2>(LinqExp.Expression <Action <TArg1, TArg2> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 protected static LambdaExpression CreateLambda(LinqExp.Expression <Action> linqLambda)
 => LinqExpressionToDlrExpressionConverter.Convert(linqLambda);