Show / Hide Table of Contents

    Interface IProperties<TObject, TProperty, TValue>

    Defines a properties operator that is able to get or set values of properties of a object of a specific type.

    Определяет оператор свойств, который может получать или устанавливать значения свойств объекта определенного типа.

    Namespace: Platform.Interfaces
    Assembly: Platform.Interfaces.dll
    Syntax
    public interface IProperties<in TObject, in TProperty, TValue>
    Type Parameters
    Name Description
    TObject

    Object type.

    Тип объекта.

    TProperty

    Property reference type.

    Тип ссылки на свойство.

    TValue

    Property value type.

    Тип значения свойства.

    Methods

    | Improve this Doc View Source

    GetValue(TObject, TProperty)

    Gets the value of the property in the specified object.

    Получает значение свойства в указанном объекте.

    Declaration
    TValue GetValue(TObject object, TProperty property)
    Parameters
    Type Name Description
    TObject object

    The object reference.

    Ссылка на объект.

    TProperty property

    The property reference.

    Ссылка на свойство.

    Returns
    Type Description
    TValue

    The value of the property.

    Значение свойства.

    | Improve this Doc View Source

    SetValue(TObject, TProperty, TValue)

    Sets the value of a property in the specified object.

    Устанавливает значение свойства в указанном объекте.

    Declaration
    void SetValue(TObject object, TProperty property, TValue value)
    Parameters
    Type Name Description
    TObject object

    The object reference.

    Ссылка на объект.

    TProperty property

    The property reference.

    Ссылка на свойство.

    TValue value

    The value.

    Значение.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX