Skip to content

M_CodeJam_Expressions_ExpressionExtensions_Transform__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ExpressionExtensions.Transform(T) Method (T, Func(Expression, Expression))

Tranforms original expression.

Namespace: CodeJam.Expressions
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static T Transform<T>(
	this T expr,
	Func<Expression, Expression> func
)
where T : LambdaExpression

VB

<ExtensionAttribute>
Public Shared Function Transform(Of T As LambdaExpression) ( 
	expr As T,
	func As Func(Of Expression, Expression)
) As T

F#

[<ExtensionAttribute>]
static member Transform : 
        expr : 'T * 
        func : Func<Expression, Expression> -> 'T  when 'T : LambdaExpression

Parameters

 

expr
Type: T
Expression to transform.
func
Type: System.Func(Expression, Expression)
Transform function.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Expressions.ExpressionExtensions.Transform1(0,System.Func{System.Linq.Expressions.Expression,System.Linq.Expressions.Expression})"]

Return Value

Type: T
Modified expression.

Usage Note

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

Reference

ExpressionExtensions Class
Transform Overload
CodeJam.Expressions Namespace

Clone this wiki locally