Class StringExtensions
Extension methods for strings.
Assembly: Dalamud.dll
Declaration
public static class StringExtensions
Methods
Format(string, params object[])
An extension method to chain usage of string.Format.
Declaration
public static string Format(this string format, params object[] args)
Returns
System.String: Formatted string.
Parameters
| Type | Name | Description |
|---|---|---|
System.String | format | Format string. |
System.Object[] | args | Format arguments. |
IsNullOrEmpty(string?)
Indicates whether the specified string is null or an empty string ("").
Declaration
public static bool IsNullOrEmpty(this string? value)
Returns
System.Boolean: true if the value parameter is null or an empty string (""); otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
System.String | value | The string to test. |
IsNullOrWhitespace(string?)
Indicates whether a specified string is null, empty, or consists only of white-space characters.
Declaration
public static bool IsNullOrWhitespace(this string? value)