Class StringExtensions
- Namespace
- CapyKit.Extensions
- Assembly
- CapyKit.dll
Provides static extentions methods for providing additional functionality for string types.
public static class StringExtensions
- Inheritance
-
StringExtensions
- Inherited Members
Methods
IfNullOrEmpty(string, string)
Replaces a null or empty string with a specified replacement string.
public static string IfNullOrEmpty(this string value, string replacement)
Parameters
Returns
- string
The original string if not null or empty, otherwise the replacement string.
- See Also
IfNullOrWhiteSpace(string, string)
Replaces a null or whitespace string with a specified replacement string.
public static string IfNullOrWhiteSpace(this string value, string replacement)
Parameters
Returns
- string
The original string if not null or whitespace, otherwise the replacement string.
- See Also