ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions Namespace / ExpressionExtensions Class / ReplaceIdentifier Method
Original expression.
Replacing function.

In This Topic
    ReplaceIdentifier Method
    In This Topic
    Replaces all occurrences of the identifier in current expression, using provided function.
    Syntax
    'Declaration
     
    Public Shared Function ReplaceIdentifier( _
       ByVal originalExpression As ExpressionInfo, _
       ByVal replacer As Func(Of String,String) _
    ) As ExpressionInfo
    public static ExpressionInfo ReplaceIdentifier( 
       ExpressionInfo originalExpression,
       Func<string,string> replacer
    )

    Parameters

    originalExpression
    Original expression.
    replacer
    Replacing function.

    Return Value

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