WritableT Class |
Namespace: Ookii.Jumbo.IO
The WritableT type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Read |
Reads the object from the specified reader.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write |
Writes the object to the specified writer.
|
The generated IWritable implementation will serialize all properties of the type. Because IWritable types may be created uninitialized (without calling the constructor), you must be sure it's safe to deserialize a type by simply setting all its properties, even if the constructor hasn't been run.
Because the serializer and deserializer are generated from the type T, it is not safe to derive other classes from that type unless you override the Read(BinaryReader) and Write(BinaryWriter) implementations.