Deserialize(Stream, IMetadataDispenser)
Deserializes a stream into an array of aspects.
Declaration
protected abstract IAspect[] Deserialize(Stream stream, IMetadataDispenser metadataDispenser)Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream containing the serialized aspects. |
| IMetadataDispenser | metadataDispenser | The metadata dispenser to be used to resolve serialized metadata references in |
Returns
| Type | Description |
|---|---|
| IAspect[] | An array of aspects. |
Remarks
The implementation is not allowed to change the order of the array elements.
Deserialize(Assembly, string, IMetadataDispenser)
Deserializes aspects contained in a managed resource of an assembly.
Declaration
public IAspect[] Deserialize(Assembly assembly, string resourceName, IMetadataDispenser metadataDispenser)Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | Assembly containing the serialized aspects. |
| string | resourceName | The name of the managed resource into which the aspects have been serialized. |
| IMetadataDispenser | metadataDispenser | The metadata dispenser to be used to resolve serialized metadata references in this resource. |
Returns
| Type | Description |
|---|---|
| IAspect[] | An array of aspects. |