Class ValueConverter<T>
A strongly-typed IValueConverter.
Inheritance
ValueConverter<T>
Implements
Namespace: IPA.Config.Stores
Assembly: IPA.Loader.dll
Syntax
public abstract class ValueConverter<T> : object, IValueConverter
Type Parameters
Name | Description |
---|---|
T | the type of object to handle |
Methods
| Improve this Doc View SourceFromValue(Value, Object)
Converts the given Value to the object type handled by this converter.
Declaration
public abstract T FromValue(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | the Value to deserialize |
Object | parent | the object that will own the result |
Returns
Type | Description |
---|---|
T | the deserialized object |
See Also
| Improve this Doc View SourceToValue(T, Object)
Converts the given object to a Value.
Declaration
public abstract Value ToValue(T obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
T | obj | the object to convert |
Object | parent | the owning object of |
Returns
Type | Description |
---|---|
Value | a representation of |
See Also
Explicit Interface Implementations
| Improve this Doc View SourceIValueConverter.FromValue(Value, Object)
Declaration
object? IValueConverter.FromValue(Value value, object parent)
Parameters
Type | Name | Description |
---|---|---|
Value | value | |
Object | parent |
Returns
Type | Description |
---|---|
Nullable<Object> |
IValueConverter.ToValue(Nullable<Object>, Object)
Declaration
Value IValueConverter.ToValue(object? obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj | |
Object | parent |
Returns
Type | Description |
---|---|
Value |
IValueConverter.Type
Declaration
Type IValueConverter.Type { get; }
Returns
Type | Description |
---|---|
Type |