Search Results for

    Show / Hide Table of Contents

    Class ValueConverter<T>

    A strongly-typed IValueConverter.

    Inheritance
    System.Object
    ValueConverter<T>
    CaseInsensitiveEnumConverter<T>
    CollectionConverter<T, TCollection>
    CustomObjectConverter<T>
    CustomValueTypeConverter<T>
    DictionaryConverter<TValue>
    EnumConverter<T>
    HexColorConverter
    IDictionaryConverter<TValue>
    IReadOnlyDictionaryConverter<TValue>
    NullableConverter<T>
    NumericEnumConverter<T>
    AlmostVersionConverter
    Implements
    IValueConverter
    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 Source

    FromValue(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
    FromValue(Value, System.Object)
    | Improve this Doc View Source

    ToValue(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 obj

    Returns
    Type Description
    Value

    a representation of obj as a Value structure

    See Also
    ToValue(System.Object, System.Object)

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValueConverter.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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    IValueConverter.Type

    Declaration
    Type IValueConverter.Type { get; }
    Returns
    Type Description
    System.Type

    Implements

    IValueConverter

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])

    See Also

    IValueConverter
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX