文档

Unity Engine

Unity Engine

ParseResult<T>

A ParseResult represents the result of a parsing operation.
阅读时间1 分钟最后更新于 1 个月前

Definition

public readonly struct ParseResult<T>

Remarks

\<T\>: Type of the result of the parsing operation.
ParseResults are used in the context of type parsers. See QueryEngine.AddTypeParser for more details.

Fields

Value

Description

parsedValueThe parsing result.

Static Fields

Value

Description

noneDefault value when no ParsetResult is available.

Constructors

Constructor

Description

ParseResult`1(System.Boolean,`0)Create a ParseResult.

Properties

Property

Description

successFlag indicating if the parsing succeeded or not.