Search Results for

    Show / Hide Table of Contents

    Class StringBuilderExtensionMethods

    StringBuilder extensions methods.

    Inheritance
    object
    StringBuilderExtensionMethods
    Namespace: Evergine.Framework.Graphics.Effects
    Assembly: Evergine.Framework.dll
    Syntax
    public static class StringBuilderExtensionMethods

    Methods

    Contains(StringBuilder, string)

    Indicates whether a string is contains in a StringBuilder.

    Declaration
    public static bool Contains(this StringBuilder haystack, string needle)
    Parameters
    Type Name Description
    StringBuilder haystack

    StringBuilder instance.

    string needle

    String to find.

    Returns
    Type Description
    bool

    True whether the StringBuilder contains this string or False in otherwise.

    IndexOf(StringBuilder, string)

    Return the index of the first appearance string in the StringBuilder.

    Declaration
    public static int IndexOf(this StringBuilder haystack, string needle)
    Parameters
    Type Name Description
    StringBuilder haystack

    StringBuilder instance.

    string needle

    String to find.

    Returns
    Type Description
    int

    Index of the first appearance, 0 whether the string length is zero or -1 whether the string was not found.

    In this article
    Back to top
    Generated by DocFX