Open sandboxFocus

Method Deserialize

Deserialize(Stream, IMetadataDispenser)

Deserializes a stream into an array if aspects.

Declaration
protected abstract IAspect[] Deserialize(Stream stream, IMetadataDispenser metadataDispenser)
Parameters
Type Name Description
Stream stream

Stream containing serialized aspects.

IMetadataDispenser metadataDispenser

Metadata dispenser to be used to resolve serialized metadata references in stream.

Returns
Type Description
IAspect[]

An array of aspects.

Remarks

The implementation is not allowed to change the order or array elements.

Deserialize(Assembly, string, IMetadataDispenser)

Deserializes aspects contained in a managed resource of an assembly.

Declaration
public IAspect[] Deserialize(Assembly assembly, string resourceName, IMetadataDispenser metadataDispenser)
Parameters
Type Name Description
Assembly assembly

Assembly containing the serialized aspects.

string resourceName

Name of the managed resources into which aspects have been serialized.

IMetadataDispenser metadataDispenser

Metadata dispenser to be used to resolve serialized metadata references in this resource.

Returns
Type Description
IAspect[]

An array of aspects.