Show / Hide Table of Contents

    Method EndsWith

    EndsWith(String, String, Boolean)

    Determines whether the end of this string instance matches the specified string instance based on a case-sensitive comparison, optionally taking the current culture into account.
    Declaration
    public static bool EndsWith(this string self, string value, bool useCurrentCulture)
    Parameters
    Type Name Description
    String self This String instance whose end to compare to another.
    String value The String instance to compare to the substring at the end of this instance.
    Boolean useCurrentCulture If set to true, the current culture will be taken into account, otherwise the strings are compared ordinally.
    Returns
    Type Description
    Boolean true, if the value parameter matches the end of this String, otherwise false.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.