Class StringExt
Static helper functions for System.String. Useful for example in LINQ queries.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Assembly: Unity.Tutorials.Core.Editor.dll
Syntax
public static class StringExt
Methods
IsNotNullOrEmpty(string)
Indicates whether a specified string is not null or an empty string ("").
Declaration
public static bool IsNotNullOrEmpty(string str)
Parameters
Type | Name | Description |
---|---|---|
string | str | The string this function acts on |
Returns
Type | Description |
---|---|
bool | True if the string is not null or empty |
IsNotNullOrWhiteSpace(string)
Indicates whether a specified string is not null, empty, or consists only of white-space characters.
Declaration
public static bool IsNotNullOrWhiteSpace(string str)
Parameters
Type | Name | Description |
---|---|---|
string | str | The string this function acts on |
Returns
Type | Description |
---|---|
bool | True if the string is not null or not only whitespace |