Open sandboxFocus

Method Serialize

Serialize(object)

Serializes an object into a byte array.

Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The constructor requires unreferenced and dynamic code.")]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "The constructor requires unreferenced and dynamic code.")]
public byte[] Serialize(object value)
Parameters
Type Name Description
object value

The object to serialize.

Returns
Type Description
byte[]

A byte array representing value.

Implements