Click or drag to resize

PolymorphicValueWriterT Class

Value writer that allows a base class to be polymorphically serialized.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IOPolymorphicValueWriterT

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public sealed class PolymorphicValueWriter<T> : IValueWriter<T>

Type Parameters

T
The type to serialize.

The PolymorphicValueWriterT type exposes the following members.

Constructors
 NameDescription
Public methodPolymorphicValueWriterTInitializes a new instance of the PolymorphicValueWriterT class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRead Reads a value from the specified reader.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Writes the specified value to the specified writer.
Top
Remarks

When using this value writer, you must declare all allowed derived using the WritableDerivedTypeAttribute attribute.

In order to support serializing the base class itself, it must not be and implement the IWritable interface.

See Also