Class LooseAssemblyNameConverter
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.dll
Syntax
public class LooseAssemblyNameConverter : fsDirectConverter
Properties
ModelType
Declaration
public override Type ModelType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
CreateInstance(fsData, Type)
Construct an object instance that will be passed to TryDeserialize. This should not deserialize the object.
Declaration
public override object CreateInstance(fsData data, Type storageType)
Parameters
Type | Name | Description |
---|---|---|
fs |
data | The data the object was serialized with. |
Type | storageType | The field/property type that is storing the instance. |
Returns
Type | Description |
---|---|
object | An object instance |
Overrides
TryDeserialize(fsData, ref object, Type)
Deserialize data into the object instance.
Declaration
public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType)
Parameters
Type | Name | Description |
---|---|---|
fs |
data | Serialization data to deserialize from. |
object | instance | The object instance to deserialize into. |
Type | storageType | The field/property type that is storing the instance. |
Returns
Type | Description |
---|---|
fs |
True if serialization was successful, false otherwise. |
Overrides
TrySerialize(object, out fsData, Type)
Serialize the actual object into the given data storage.
Declaration
public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType)
Parameters
Type | Name | Description |
---|---|---|
object | instance | The object instance to serialize. This will never be null. |
fs |
serialized | The serialized state. |
Type | storageType | The field/property type that is storing this instance. |
Returns
Type | Description |
---|---|
fs |
If serialization was successful. |