PostSharp4.3/API Reference/Post­Sharp.​Aspects.​Serialization Namespace/Portable­Aspect­Serializer Class/Portable­Aspect­Serializer Methods/Portable­Aspect­Serializer.​Serialize Method
PortableAspectSerializer.Serialize Method
Serializes an array of aspects into a stream.

Namespace: PostSharp.Aspects.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public override void Serialize(
	IAspect[] aspects,
	Stream stream,
	IMetadataEmitter metadataEmitter
)

Parameters

aspects
Type: PostSharp.Aspects.IAspect[]
Array of aspects to be serialized.
stream
Type: System.IO.Stream
Stream into which aspects have to be serialized.
metadataEmitter
Type: PostSharp.Reflection.IMetadataEmitter
A metadata emitter for the current module.
See Also