Class StringBuilderExtensionMethods
StringBuilder extension methods.
Namespace: Evergine.Framework.Graphics.Effects
Assembly: Evergine.Framework.dll
Syntax
public static class StringBuilderExtensionMethods
Methods
Contains(StringBuilder, string)
Indicates whether a string is contained 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 if the StringBuilder contains this string, or False otherwise. |
IndexOf(StringBuilder, string)
Returns the index of the first appearance of the 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 if the string length is zero or -1 if the string is not found. |