Class StringExtensions
Extension methods for the System.String class.
Inheritance
System.Object
StringExtensions
Namespace: Cuemon.AspNetCore.Razor.TagHelpers
Assembly: Cuemon.AspNetCore.Razor.TagHelpers.dll
Syntax
public static class StringExtensions
Methods
| Improve this DocPrefixWith(String, String)
Prefixes the source
with the specified value
.
Declaration
public static string PrefixWith(this string source, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The string to extend. |
System.String | value | The value to prefix |
Returns
Type | Description |
---|---|
System.String | A string with a prefix |
SuffixWith(String, String)
Suffixes the source
with the specified value
.
Declaration
public static string SuffixWith(this string source, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The string to extend. |
System.String | value | The value to suffix |
Returns
Type | Description |
---|---|
System.String | A string with a suffix |
SuffixWithForwardingSlash(String)
Suffixes the source
with a forwarding slash.
Declaration
public static string SuffixWithForwardingSlash(this string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The string to extend. |
Returns
Type | Description |
---|---|
System.String | A string with a suffix forwarding slash. |