Show / Hide Table of Contents

    Method Equals

    Equals(String, String, Boolean)

    Determines whether two String instances have the same value based on a case-sensitive comparison, optionally taking the current culture into account.
    Declaration
    public static bool Equals(this string self, string other, bool useCurrentCulture)
    Parameters
    Type Name Description
    String self This String instance to compare with another. Can be null.
    String other The String instance to compare with. Can be null.
    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 both strings are equal w.r.t. the culture flag.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.