Skip to main content

Delegate BoxedTryParse

Namespace: AdCodicem.ValueObjects.Metadata
Assembly: AdCodicem.ValueObjects.Abstractions.dll

Attempts to build a value object from its text representation.

public delegate bool BoxedTryParse(ReadOnlySpan<char> text, IFormatProvider? provider, out object? result, out ValidationResult validation)

Parameters

text ReadOnlySpan<char>

Text to parse.

provider IFormatProvider?

Format provider used to parse the underlying value.

result object?

The boxed value object, or null when the text is rejected.

validation ValidationResult

The outcome of the parse and validation.

Returns

bool

true when the text was accepted.