Method Contains
Contains(StringBuilder, String)
Checks if a StringBuilder contains a specific string
Declaration
public static bool Contains(this StringBuilder haystack, string needle)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | haystack | The StringBuilder to use |
String | needle | The string to search |
Returns
Type | Description |
---|---|
Boolean | True it The StringBuilder contains the string, false otherwise |
Remarks
This has been shamelessly copy pasted from here: https://stackoverflow.com/questions/12261344/fastest-search-method-in-stringbuilder