Pocok.Conversion
Conversion
Test conversion policies, collection handling, enums, temporal values, and structured failure paths.
Conversion example
Ready
Enter arrays as JSON. The expression view renders them as supported C#-style literals.
This example accepts 1–500 items. ConversionContext.Strict retains the package default of 10,000.
Generated API call
converter.Convert<byte>(
300,
new ConversionContext(
CultureInfo.InvariantCulture,
overflow: OverflowPolicy.Saturate,
nulls: NullPolicy.Preserve,
enums: EnumPolicy.DefinedValuesAndFlags,
numericLoss: NumericLossPolicy.Reject,
numericBooleans: NumericBooleanPolicy.Reject,
temporalText: TemporalTextPolicy.RoundTrip,
maximumDepth: 32
)
);Result
Run the current input to inspect the conversion result.