In This Article

BinaryAssemblySerializer Class

Serializes and deserializes IBinaryAssembly objects.

public class BinaryAssemblySerializer
Inheritance:
Object Object

Constructors

BinaryAssemblySerializer()

public BinaryAssemblySerializer()

Methods

LoadFromStream(IBinaryAssemblyMetadata, Stream)

Loads an IBinaryAssembly from a cache Stream.

public IBinaryAssembly LoadFromStream(IBinaryAssemblyMetadata metadata, Stream stream)
Parameter Type Description
metadata IBinaryAssemblyMetadata

The assembly metadata, if known, to compare to the stream's data for validation.

stream Stream

The Stream from which to load.

Returns

IBinaryAssembly:

The IBinaryAssembly that was loaded.

LoadMetadataFromStream(Stream)

Loads an IBinaryAssemblyMetadata from a cache Stream.

public IBinaryAssemblyMetadata LoadMetadataFromStream(Stream stream)
Parameter Type Description
stream Stream

The Stream from which to load.

Returns

IBinaryAssemblyMetadata:

The IBinaryAssemblyMetadata that was loaded.

SaveToStream(IBinaryAssembly, Stream)

Saves an IBinaryAssembly to a cache Stream.

public void SaveToStream(IBinaryAssembly assembly, Stream stream)
Parameter Type Description
assembly IBinaryAssembly

The IBinaryAssembly to serialize.

stream Stream

The Stream into which serialization should occur.

Inherited Members