SerializationTryDeserialiseT Method

Car Delivery Network API DocumentationCar Delivery Network
Deserialises the specified serialised object into instance of T

Namespace:  CarDeliveryNetwork.Api.Data
Assembly:  CarDeliveryNetwork.Api.Data (in CarDeliveryNetwork.Api.Data.dll) Version: 3.2.3017.0 (3.2.3017)
Syntax

public static bool TryDeserialise<T>(
	string serialisedObject,
	MessageFormat format,
	IEnumerable<Type> knownTypes,
	out T output
)
where T : class

Parameters

serialisedObject
Type: SystemString
Serialised object
format
Type: CarDeliveryNetwork.TypesMessageFormat
Format that the serialised object
knownTypes
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
output
Type: T
on success, the deserialised object

Type Parameters

T
Type to deserialise to

Return Value

Type: Boolean
true, on successful deserialisation
See Also

Reference