PostSharp4.3//API Reference/Post­Sharp.​Aspects.​Serialization Namespace/Binary­Aspect­Serializer Class/Binary­Aspect­Serializer Methods/Binary­Aspect­Serializer.​Deserialize Method/Binary­Aspect­Serializer.​Deserialize Method (Stream, IMetadata­Dispenser)
BinaryAspectSerializer.Deserialize Method (Stream, IMetadataDispenser)
Deserializes a stream into an array if aspects.

Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
protected override IAspect[] Deserialize(
	Stream stream,
	IMetadataDispenser metadataDispenser
)

Parameters

stream
Type: System.IO.Stream
Stream containing serialized aspects.
metadataDispenser
Type: PostSharp.Reflection.IMetadataDispenser
Metadata dispenser to be used to resolve serialized metadata references in stream.

Return Value

Type: IAspect[]
An array of aspects.
Remarks
The implementation is not allowed to change the order or array elements.
See Also