docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ParseResult<T>

    A ParseResult holds the result of a parsing operation.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Search
    Assembly: com.unity.quicksearch.dll
    Syntax
    public readonly struct ParseResult<T>
    Type Parameters
    Name Description
    T

    Type of the result of the parsing operation.

    Constructors

    ParseResult(bool, T)

    Create a ParseResult.

    Declaration
    public ParseResult(bool success, T value)
    Parameters
    Type Name Description
    bool success

    Flag indicating if the parsing succeeded or not.

    T value

    Actual result of the parsing.

    Fields

    none

    Default value when no ParsetResult are available.

    Declaration
    public static readonly ParseResult<T> none
    Field Value
    Type Description
    ParseResult<T>

    parsedValue

    Actual result of the parsing.

    Declaration
    public readonly T parsedValue
    Field Value
    Type Description
    T

    Properties

    success

    Flag indicating if the parsing succeeded or not.

    Declaration
    public bool success { get; }
    Property Value
    Type Description
    bool
    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)