Table of Contents

Method Serialize

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

Serialize(string, bool?, bool)

Serialize a bool value into the object.

public void Serialize(string key, bool? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value bool?

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, DateTimeOffset?, bool)

Serialize a DateTimeOffset value into the object.

public void Serialize(string key, DateTimeOffset? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value DateTimeOffset?

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, decimal?, bool)

Serialize a decimal value into the object.

public void Serialize(string key, decimal? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value decimal?

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, Enum?, bool)

Serialize an Enum value into the object.

public void Serialize(string key, Enum? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value Enum

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, int?, bool)

Serialize an int value into the object.

public void Serialize(string key, int? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value int?

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, long?, bool)

Serialize a long value into the object.

public void Serialize(string key, long? value, bool includeNullValues = false)

Parameters

key string

The name of the value

value long?

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

Serialize(string, string?, bool, bool)

Serialize a string value into the object.

public void Serialize(string key, string? value, bool includeNullValues = false, bool includeEmptyValues = true)

Parameters

key string

The name of the value

value string

The value

includeNullValues bool

Set to true to serialize a null value, or false to skip it

includeEmptyValues bool

Set to true to serialize empty strings, or false to skip it