StringExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helpers for working with the String type.
public static class StringExtensions
type StringExtensions = class
Public Module StringExtensions
- Inheritance
-
StringExtensions
Methods
Count(String, Char) |
Counts the number of occurrences of a given character into a target String instance. |
DangerousGetReference(String) |
Returns a reference to the first element within a given String, with no bounds checks. |
DangerousGetReferenceAt(String, Int32) |
Returns a reference to an element at a specified index within a given String, with no bounds checks. |
Enumerate(String) |
Enumerates the items in the input String instance, as pairs of value/index values.
This extension should be used directly within a
The compiler will take care of properly setting up the |
GetDjb2HashCode(String) |
Gets a content hash from the input String instance using the Djb2 algorithm. For more info, see the documentation for GetDjb2HashCode<T>(ReadOnlySpan<T>). |
Tokenize(String, Char) |
Tokenizes the values in the input String instance using a specified separator.
This extension should be used directly within a
The compiler will take care of properly setting up the |