Class CustomObjectConverter<T>
A ValueConverter<T> for objects normally serialized to config via Generated<T>(Config, Boolean).
Implements
Inherited Members
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public class CustomObjectConverter<T> : ValueConverter<T>, IValueConverter where T : class
Type Parameters
| Name | Description |
|---|---|
| T | the same type parameter that would be passed into Generated<T>(Config, Boolean) |
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
See Also
| Improve this Doc View SourceSerialize(T, Object)
Serializes obj into a Value structure, given parent.
Declaration
public static Value Serialize(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 |
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 |