db4o

IObjectMarshaller Interface

interface for custom marshallers.

For a list of all members of this type, see IObjectMarshaller Members.

public interface IObjectMarshaller

Remarks

interface for custom marshallers. Custom marshallers can be used for tuning the performance to store and read objects. Instead of letting db4o do all the marshalling by detecting the fields on a class and by using reflection, a custom ObjectMarshaller allows the application developer to write the logic how the fields of an object are converted to a byte[] and back.

To implement a custom marshaller, write a class that implements the methods of the ObjectMarshaller interface and register it for your persistent class:

Db4o.configure().objectClass(YourClass.class).marshallWith(yourMarshaller);

Requirements

Namespace: Db4objects.Db4o.Config

Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)

See Also

IObjectMarshaller Members | Db4objects.Db4o.Config Namespace