SerializationSerialize Method

Car Delivery Network API DocumentationCar Delivery Network
Serialised the specified object in the specified format

Namespace:  CarDeliveryNetwork.Api.Data
Assembly:  CarDeliveryNetwork.Api.Data (in CarDeliveryNetwork.Api.Data.dll) Version: 3.2.3008.0 (3.2.3008)
Syntax

public static string Serialize(
	Object o,
	MessageFormat format,
	IEnumerable<Type> knownTypes = null
)

Parameters

o
Type: SystemObject
The object to serialise
format
Type: CarDeliveryNetwork.TypesMessageFormat
The format to serialise into
knownTypes (Optional)
Type: System.Collections.GenericIEnumerableType
An System.Collections.Generic.IEnumerable`1 of System.Type that contains the types that may be present in the object graph

Return Value

Type: String
The serialised message
See Also

Reference