Was this page helpful?

LastIndexOfInvariant Extension Method

    LastIndexOfInvariant(this string text, string value, bool ignoreCase)

    public static int LastIndexOfInvariant(this string text, string value, bool ignoreCase);
    Shortcut for invariant String.LastIndexOf(string value)

    Parameters

    Name Type Description
    text string Text to examine
    value string The System.String to find.
    ignoreCase bool True if case should not be considered in comparison.

    Returns

    Type: int
    The index position of the value parameter if that string is found, or -1 if it is not. If value is String.Empty, the return value is the last index position in this instance.

    LastIndexOfInvariant(this string text, string value)

    public static int LastIndexOfInvariant(this string text, string value);
    Shortcut for invariant String.LastIndexOf(string value)

    Parameters

    Name Type Description
    text string Text to examine
    value string The System.String to find.

    Returns

    Type: int
    The index position of the value parameter if that string is found, or -1 if it is not. If value is String.Empty, the return value is the last index position in this instance.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by