Table of Contents

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

value object

The value to be serialized

type Type

The type of the value to be serialized (cannot be null if value is null)

Returns

string

The serialized object