Method Serialize
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
Serialize(object?, Type?)
Serializes an object.
public string Serialize(object? value, Type? type = null)
Parameters
valueobjectThe value to be serialized
typeTypeThe type of the value to be serialized (cannot be
nullifvalueisnull)
Returns
- string
The serialized object