Skip to main content
Version: Preview (0.3.0-preview.205)

Delegate BoxedTryCreate

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

Attempts to build a value object from a boxed underlying value.

public delegate bool BoxedTryCreate(object? value, out object? result, out ValidationResult validation)

Parameters​

value object?

Boxed candidate value.

result object?

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

validation ValidationResult

The outcome of the validation.

Returns​

bool

true when the value was accepted.