docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringExt

    Static helper functions for System.String. Useful for example in LINQ queries.

    Inheritance
    object
    StringExt
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)