ICustomArrayType

Overview

The ICustomArrayType interface defines a custom array type that can be read or written by the Serializer instance.

The Serializer contains a TypeFactory property (IROSerializerTypeFactory type). This type factory allows to instantiate custom types not defined in the RODL while reading the incoming data stream. TypeFactory and correspondong interfaces also allow to implement a consistent way of serializing custom data types via standard RemObjects serializers like BinSerializer. This can be useful for integrating third-party libraries like ORM.

Location

 

AfterReadArray

This method is called by the Serializer instance after it finishes to deserialize an object from the data stream. This method can be used to perform consistency checks, client-side calculations, etc.

 

method AfterReadArray

 

void AfterReadArray()

 

Sub AfterReadArray()

AfterWriteArray

This method is called by the Serializer instance after it finishes to serialize the current ICustomArrayType instance. This method can be used to perform cleanup actions like disposing helper objects, etc.

 

method AfterWriteArray

 

void AfterWriteArray()

 

Sub AfterWriteArray()

BeforeReadArray

This method is called by the Serializer instance before it starts to deserialize an object from the data stream. This method can be used to perform preparations like memory allocating, helper objects creation, etc.

 

method BeforeReadArray

 

void BeforeReadArray()

 

Sub BeforeReadArray()

BeforeWriteArray

This method is called by the Serializer instance before it starts to serialize the current ICustomArrayType instance. Like the BeforeReadArray method, it can be used to perform preparation actions.

 

method BeforeWriteArray

 

void BeforeWriteArray()

 

Sub BeforeWriteArray()

ElementType

Type of the objects contained in this ICustomArrayType instance.

 

property ElementType: Type read;

 

Type ElementType { get; }

 

ReadOnly Property ElementType() As Type

ElementTypeName

Name of the array element type.

 

property ElementTypeName: String read;

 

String ElementTypeName { get; }

 

ReadOnly Property ElementTypeName() As String

 

ElementType

Type of the objects contained in this ICustomArrayType instance.

 

property ElementType: Type read;

 

Type ElementType { get; }

 

ReadOnly Property ElementType() As Type

ElementTypeName

Name of the array element type.

 

property ElementTypeName: String read;

 

String ElementTypeName { get; }

 

ReadOnly Property ElementTypeName() As String

 

AfterReadArray

This method is called by the Serializer instance after it finishes to deserialize an object from the data stream. This method can be used to perform consistency checks, client-side calculations, etc.

 

method AfterReadArray

 

void AfterReadArray()

 

Sub AfterReadArray()

AfterWriteArray

This method is called by the Serializer instance after it finishes to serialize the current ICustomArrayType instance. This method can be used to perform cleanup actions like disposing helper objects, etc.

 

method AfterWriteArray

 

void AfterWriteArray()

 

Sub AfterWriteArray()

BeforeReadArray

This method is called by the Serializer instance before it starts to deserialize an object from the data stream. This method can be used to perform preparations like memory allocating, helper objects creation, etc.

 

method BeforeReadArray

 

void BeforeReadArray()

 

Sub BeforeReadArray()

BeforeWriteArray

This method is called by the Serializer instance before it starts to serialize the current ICustomArrayType instance. Like the BeforeReadArray method, it can be used to perform preparation actions.

 

method BeforeWriteArray

 

void BeforeWriteArray()

 

Sub BeforeWriteArray()