Click or drag to resize

ToExpressionPrinterToExpressionString Method (Expression, CodePrinterObjectToCode)

Prints the expression in its constructing syntax - helpful to get the expression from the debug session and put into it the code for the test.

Namespace:  SphinxConnector.FluentApi.Helpers
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntax
public static string ToExpressionString(
	this Expression expr,
	CodePrinterObjectToCode notRecognizedToCode = null
)

Parameters

expr
Type: System.Linq.ExpressionsExpression

[Missing <param name="expr"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ToExpressionPrinter.ToExpressionString(System.Linq.Expressions.Expression,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode)"]

notRecognizedToCode (Optional)
Type: SphinxConnector.FluentApi.HelpersCodePrinterObjectToCode

[Missing <param name="notRecognizedToCode"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ToExpressionPrinter.ToExpressionString(System.Linq.Expressions.Expression,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode)"]

Return Value

Type: String

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ToExpressionPrinter.ToExpressionString(System.Linq.Expressions.Expression,SphinxConnector.FluentApi.Helpers.CodePrinter.ObjectToCode)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Expression. 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