Method Serialize
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
Serialize(T)
Serializes a value into a string to be later deserialized with Deserialize(Type, string).
public abstract string Serialize(T value)
Parameters
valueTThe 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(T, out string?) is called before this, so any validation done there need not be repeated here.