Search Results for

    Show / Hide Table of Contents

    Class PropertyUpdater

    The curve updater's property.

    Inheritance
    object
    PropertyUpdater
    Namespace: Evergine.Framework.Animation
    Assembly: Evergine.Framework.dll
    Syntax
    public class PropertyUpdater

    Fields

    getter

    Gets the property value.

    Declaration
    protected Func<object, object> getter
    Field Value
    Type Description
    Func<object, object>

    setter

    The property setter.

    Declaration
    protected Action<object, object> setter
    Field Value
    Type Description
    Action<object, object>

    Properties

    PropertyName

    Gets the property name.

    Declaration
    public string PropertyName { get; }
    Property Value
    Type Description
    string

    Type

    Gets the type that is evaluated.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    Type

    Methods

    AddCustomPropertyUpdater(Type, string, Func<object, object>, Action<object, object>)

    Adds a custom property updater.

    Declaration
    public static PropertyUpdater AddCustomPropertyUpdater(Type type, string propertyName, Func<object, object> getter, Action<object, object> setter)
    Parameters
    Type Name Description
    Type type

    The associated type.

    string propertyName

    The property name.

    Func<object, object> getter

    The getter function.

    Action<object, object> setter

    The setter action.

    Returns
    Type Description
    PropertyUpdater

    The property updater.

    GetPropertyUpdater(Type, string)

    Gets the property updater.

    Declaration
    public static PropertyUpdater GetPropertyUpdater(Type type, string propertyName)
    Parameters
    Type Name Description
    Type type

    The type of the object.

    string propertyName

    The name of the property.

    Returns
    Type Description
    PropertyUpdater

    The property updater.

    GetValue(object)

    Gets the value of the property.

    Declaration
    public object GetValue(object instance)
    Parameters
    Type Name Description
    object instance

    The instance.

    Returns
    Type Description
    object

    The value.

    GetValue<T>(object)

    Gets the value of the property.

    Declaration
    public T GetValue<T>(object instance)
    Parameters
    Type Name Description
    object instance

    The instance.

    Returns
    Type Description
    T

    The value.

    Type Parameters
    Name Description
    T

    The value type.

    SetValue(object, object)

    Sets the value of the property.

    Declaration
    public void SetValue(object instance, object newValue)
    Parameters
    Type Name Description
    object instance

    The instance.

    object newValue

    The new value.

    SetValue<T>(object, T)

    Sets the value of the property.

    Declaration
    public void SetValue<T>(object instance, T newValue)
    Parameters
    Type Name Description
    object instance

    The instance.

    T newValue

    The new value.

    Type Parameters
    Name Description
    T

    The type of the value.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX