Show / Hide Table of Contents

    StringExtensions.LastPos(this string strA, string strB, int? searchlength) Method

    .NET Standard 2.x

    Finds the last position of a target string in a source string.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static int? LastPos(this string strA, string strB, int? searchlength);
    

    Parameters

    strA System.String

    The string in which you want to find strB.

    strB System.String

    The string you want to find in strA.

    searchlength System.Int32

    An Int that limits the search to the leftmost searchlength characters of the source string strA. The default is the entire string.

    Returns

    System.Int32

    Returns an Int whose value is the starting position of the last occurrence of strB in strA within the characters specified in searchlength. If strB is not found in strA or if earchlength is 0, LastPos returns 0. If any argument's value is null, LastPos returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon