A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dotnet.github.io/dotNext/api/DotNext.StringExtensions.html below:

Class StringExtensions | .NEXT

Class StringExtensions

Represents various extension methods for type string.

Inheritance

StringExtensions

Namespace: DotNext Assembly: DotNext.dll Syntax
public static class StringExtensions
Methods | Edit this page View Source Reverse(string?)

Reverse string characters.

Declaration
public static string? Reverse(this string? str)
Parameters Type Name Description string str

The string to reverse.

Returns Type Description string

The string in inverse order of characters.

| Edit this page View Source Substring(string, Range)

Extracts substring from the given string.

Declaration
public static string Substring(this string str, Range range)
Parameters Type Name Description string str

The instance of string.

Range range

The range of substring.

Returns Type Description string

The part of str extracted according to the supplied range.

| Edit this page View Source TrimLength(string?, int)

Trims the source string to specified length if it exceeds it. If source string is less that maxLength then the source string returned.

Declaration
public static string? TrimLength(this string? str, int maxLength)
Parameters Type Name Description string str

Source string.

int maxLength

Maximum length.

Returns Type Description string

Trimmed string value.

Exceptions

RetroSearch 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