Class ValueConverter<T>
A strongly-typed IValueConverter.
Inheritance
System.Object
ValueConverter<T>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: IPA.Config.Stores
Assembly: IPA.Loader.dll
Syntax
public abstract class ValueConverter<T> : 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 |
System.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 |
System.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 | |
System.Object | parent |
Returns
Type | Description |
---|---|
System.Object |
IValueConverter.ToValue(Object, Object)
Declaration
Value IValueConverter.ToValue(object obj, object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | |
System.Object | parent |
Returns
Type | Description |
---|---|
Value |
IValueConverter.Type
Declaration
Type IValueConverter.Type { get; }
Returns
Type | Description |
---|---|
System.Type |