Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Serializes a complete root object using the converter generation captured by this instance.

API: engine
Project: Inno.Core.Serialization

public byte[] Inno.Core.Serialization.SerializationGeneration.Serialize<T>(T value, Inno.Core.Serialization.SerializationContext? context = null) where T : class, Inno.Core.Serialization.ISerializable

Type parameter T: The declared concrete root type.

Parameter value: The non-null root object to encode.

Parameter context: Optional immutable converter context for this operation.

Deterministic binary data encoded by the captured converter generation.

Exception T:System.ArgumentNullException: Thrown when value is null.

Exception T:System.ObjectDisposedException: Thrown when this generation has already been disposed.