Class SerializableType
Holds a System.Type in a serializable format.
Namespace: Global Namespace
Syntax
[Serializable]
public class SerializableType : ISerializationCallbackReceiver
Constructors
SerializableType(Type)
Initializes the type.
Declaration
public SerializableType(Type aType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | aType | Type to serialize. |
Fields
data
Serialized data.
Declaration
public byte[] data
Field Value
| Type | Description |
|---|---|
| Byte[] |
type
The type variable loaded for runtime.
Declaration
public Type type
Field Value
| Type | Description |
|---|---|
| Type |
Methods
BeginLoad()
Call at the start of a deserialization, will begin the recording of any implicit upgrades.
Declaration
public static void BeginLoad()
EndLoad()
Called on ending of a deserialization to see if SerializableType implicitly upgraded.
Declaration
public static bool EndLoad()
Returns
| Type | Description |
|---|---|
| Boolean | True if there was an implicit upgrade. |
OnAfterDeserialize()
Called by the deserialization module, used to load the .type from .data.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Called by the serialization module, used to dump the .type to the .data.
Declaration
public void OnBeforeSerialize()