TriLib
Search Results for

    Show / Hide Table of Contents

    Class StringComparer

    Represents a class used to match Strings using various parameters.

    Inheritance
    object
    StringComparer
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.Utils
    Assembly: TriLibCore.dll
    Syntax
    public static class StringComparer

    Methods

    Matches(StringComparisonMode, bool, string, string)

    Compares two Strings using the class options.

    Declaration
    public static bool Matches(StringComparisonMode stringComparisonMode, bool caseInsensitive, string left, string right)
    Parameters
    Type Name Description
    StringComparisonMode stringComparisonMode

    The type of comparison to use.

    bool caseInsensitive

    Pass true to do a case-insensitive search.

    string left

    The left String to compare.

    string right

    The right String to compare.

    Returns
    Type Description
    bool

    true if the strings match, false otherwise.

    In this article
    Back to top Generated by DocFX