[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.ReplaceIdentifier

ReplaceIdentifier Method

ReplaceIdentifier(ExpressionInfo, Func<string, string>)

Replaces all occurrences of the identifier in current expression, using provided function.

Declaration
public static ExpressionInfo ReplaceIdentifier(this ExpressionInfo originalExpression, Func<string, string> replacer)
Parameters
Type Name Description
ExpressionInfo originalExpression

Original expression.

Func<string, string> replacer

Replacing function.

Returns
Type Description
ExpressionInfo

New ExpressionInfo instance with replaced identifier or exact instance if no changes were made.