TryParse(Scalar, Boolean, out String?, out Object?) Method

Definition

Assembly SharpYaml.dll

Gets the default tag and value for the specified Scalar. The default tag can be different from a actual tag of this NodeEvent.

bool TryParse(Scalar scalar, bool decodeValue, [NotNullWhen(true)] scoped out string? defaultTag, scoped out object? value)

Parameters

scalar
Scalar

The scalar event.

decodeValue
Boolean

if set to true [decode value].

defaultTag
String

The default tag decoded from the scalar.

value
Object

The value extracted from a scalar.

Returns

Boolean
System.String.