Table of Contents

Constructor JsonObjectSerializer

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

JsonObjectSerializer(StringBuilder, Action?)

A special-purpose streaming serializer for objects to JSON. Only supports a limited number of type (boolean, DateTimeOffset, decimal, Enum, int, long, string, and trait dictionaries).

public JsonObjectSerializer(StringBuilder buffer, Action? disposeNotifier = null)

Parameters

buffer StringBuilder

The buffer to write JSON to

disposeNotifier Action

An optional callback to be notified when disposed

Remarks

These types are made public for third parties only for the purpose of serializing and deserializing messages that are sent across the process boundary (that is, types which implement IMessageSinkMessage). Any other usage is not supported.