Constructor JsonArraySerializer
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
JsonArraySerializer(StringBuilder, Action?)
A special-purpose streaming serializer for arrays to JSON. Only supports a limited number of types (boolean, DateTimeOffset, decimal, Enum, int, long, string, and trait dictionaries).
public JsonArraySerializer(StringBuilder buffer, Action? disposeNotifier = null)
Parameters
bufferStringBuilderThe buffer to write JSON to
disposeNotifierActionAn 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.