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
keystringThe name of the value
valuebool?The value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto skip it
Serialize(string, DateTimeOffset?, bool)
Serialize a DateTimeOffset value into the object.
public void Serialize(string key, DateTimeOffset? value, bool includeNullValues = false)
Parameters
keystringThe name of the value
valueDateTimeOffset?The value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto skip it
Serialize(string, decimal?, bool)
Serialize a decimal value into the object.
public void Serialize(string key, decimal? value, bool includeNullValues = false)
Parameters
keystringThe name of the value
valuedecimal?The value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto skip it
Serialize(string, Enum?, bool)
Serialize an Enum value into the object.
public void Serialize(string key, Enum? value, bool includeNullValues = false)
Parameters
keystringThe name of the value
valueEnumThe value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto skip it
Serialize(string, int?, bool)
Serialize an int value into the object.
public void Serialize(string key, int? value, bool includeNullValues = false)
Parameters
keystringThe name of the value
valueint?The value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto skip it
Serialize(string, long?, bool)
Serialize a long value into the object.
public void Serialize(string key, long? value, bool includeNullValues = false)
Parameters
keystringThe name of the value
valuelong?The value
includeNullValuesboolSet to
trueto serialize anullvalue, orfalseto 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)