Represents various extension methods for type string.
InheritanceStringExtensions
Namespace: DotNext Assembly: DotNext.dll Syntaxpublic static class StringExtensions
Methods | Edit this page View Source Reverse(string?)
Reverse string characters.
Declarationpublic static string? Reverse(this string? str)
Parameters Type Name Description string str
The string to reverse.
Returns Type Description stringThe string in inverse order of characters.
| Edit this page View Source Substring(string, Range)Extracts substring from the given string.
Declarationpublic static string Substring(this string str, Range range)
Parameters Type Name Description string str
The instance of string.
Range rangeThe range of substring.
Returns Type Description stringThe part of str
extracted according to the supplied range.
Trims the source string to specified length if it exceeds it. If source string is less that maxLength
then the source string returned.
public static string? TrimLength(this string? str, int maxLength)
Parameters Type Name Description string str
Source string.
int maxLengthMaximum length.
Returns Type Description stringTrimmed string value.
ExceptionsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4