PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Serialization Namespace / Aspect­Serializer Class / Aspect­Serializer Methods / Aspect­Serializer.​Deserialize Method / Aspect­Serializer.​Deserialize Method (Stream, IMetadata­Dispenser)
AspectSerializer.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 abstract 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