Class CustomValueTypeConverter<T>
A ValueConverter<T> for custom value types, serialized identically to the reference types serialized with Generated<T>(Config, Boolean).
Implements
Inherited Members
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public class CustomValueTypeConverter<T> : ValueConverter<T>, IValueConverter where T : struct
Type Parameters
Name | Description |
---|---|
T | the type of the value to convert |
Methods
| Improve this Doc View SourceDeserialize(Value, Object)
Deserializes value
into a T
with the given parent
.
Declaration
public static T Deserialize(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | the Value to deserialize |
Object | parent | the parent object that will own the deserialized value |
Returns
Type | Description |
---|---|
T | the deserialized value |
See Also
| Improve this Doc View SourceFromValue(Value, Object)
Deserializes value
into a T
with the given parent
.
Declaration
public override T FromValue(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | the Value to deserialize |
Object | parent | the parent object that will own the deserialized value |
Returns
Type | Description |
---|---|
T | the deserialized value |
Overrides
IPA.Config.Stores.ValueConverter<T>.FromValue(IPA.Config.Data.Value, System.Object)
See Also
| Improve this Doc View SourceSerialize(T)
Serializes obj
into a corresponding Value structure.
Declaration
public static Value Serialize(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | the object to serialize |
Returns
Type | Description |
---|---|
Value | the Value tree that represents |
See Also
| Improve this Doc View SourceToValue(T, Object)
Serializes obj
into a Value structure, given parent
.
Declaration
public override Value ToValue(T obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
T | obj | the object to serialize |
Object | parent | the parent object that owns |
Returns
Type | Description |
---|---|
Value | the Value tree that represents |
Overrides
IPA.Config.Stores.ValueConverter<T>.ToValue(T, System.Object)