orange.serialization.Serializable

Members

Interfaces

Serializable
interface Serializable

This interface represents a type that this is serializable. To implement this interface the user needs to implement two methods, one for serialization and one for deserialization. These methods are used to perform custom (de)serialization and will be called if available. It's up to these methods to call the serializer to perform the (de)serialization. If these methods are available the automatic (de)serialization process will not be performed.

Manifest constants

internalFields
enum internalFields;
Undocumented in source.
nonSerializedField
enum nonSerializedField;
Undocumented in source.
serializedField
enum serializedField;
Undocumented in source.

Structs

NonSerializedField
struct NonSerializedField(string name)
Undocumented in source.
nonSerialized
struct nonSerialized

Indicates that the declaration this attribute is attached to should not be (de)serialized.

Templates

NonSerialized
template NonSerialized(Fields...)

This template is used to indicate that one or several fields should not be (de)serialized. If no fields or "this" is specified, it indicates that the whole class/struct should not be (de)serialized.

isSerializable
template isSerializable(T)

This interface represents a type that this is serializable. To implement this interface Evaluates to $(D_KEYWORD true) if the given type is serializable. A type is considered serializable when it implements to two methods in the Serializable interface. Note that the type does not have to implement the actual interface, i.e. it also works for structs.

toArray
template toArray(Args...)
Undocumented in source.

Meta

Authors

Jacob Carlborg

Version

Initial created: Jan 26, 2010