ICustomArrayType Interface

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for .NET
This page is generated from external data, please do not update

NamespacesInterfacesClassesEnumsImplements

Contents

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


Properties

ElementType

Type of the objects contained in this ICustomArrayType instance.



Prism:   property ElementType: Type read
C#:   Type ElementType { get; }
VB:   Property ReadOnly ElementType As Type


ElementTypeName

Name of the array element type.



Prism:   property ElementTypeName: String read
C#:   String ElementTypeName { get; }
VB:   Property ReadOnly ElementTypeName As String


Required Methods

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.


Oxygene:   method AfterReadArray
C#:   void AfterReadArray()
VB:   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.


Oxygene:   method AfterWriteArray
C#:   void AfterWriteArray()
VB:   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.


Oxygene:   method BeforeReadArray
C#:   void BeforeReadArray()
VB:   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.


Oxygene:   method BeforeWriteArray
C#:   void BeforeWriteArray()
VB:   Sub BeforeWriteArray


See Also


Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox