Method Serialize
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
Serialize(object)
Serializes a value into a string to be later deserialized with Deserialize(Type, string).
string Serialize(object value)
Parameters
valueobjectThe value to be serialized
Returns
- string
The serialized value
Remarks
This method will never be called with null values, because those are already
special cased by the serialization system. You may assume that IsSerializable(Type, object?, out string?)
is called before this, so any validation done there need not be repeated here.