BinaryAssemblySerializer Class
Serializes and deserializes IBinaryAssembly objects.
public class BinaryAssemblySerializer
- Inheritance:
- System.Object Object
Constructors
BinaryAssemblySerializer()
public BinaryAssemblySerializer()
Methods
LoadFromStream(IBinaryAssemblyMetadata, Stream)
Loads an IBinaryAssembly from a cache System.IO.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 | System.IO.Stream | The System.IO.Stream from which to load. |
Returns
- IBinaryAssembly:
The IBinaryAssembly that was loaded.
LoadMetadataFromStream(Stream)
Loads an IBinaryAssemblyMetadata from a cache System.IO.Stream.
public IBinaryAssemblyMetadata LoadMetadataFromStream(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | System.IO.Stream | The System.IO.Stream from which to load. |
Returns
- IBinaryAssemblyMetadata:
The IBinaryAssemblyMetadata that was loaded.
SaveToStream(IBinaryAssembly, Stream)
Saves an IBinaryAssembly to a cache System.IO.Stream.
public void SaveToStream(IBinaryAssembly assembly, Stream stream)
Parameter | Type | Description |
---|---|---|
assembly | IBinaryAssembly | The IBinaryAssembly to serialize. |
stream | System.IO.Stream | The System.IO.Stream into which serialization should occur. |
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()