Interface IProperties<TObject, TProperty, TValue>

Namespace
Platform.Interfaces
Assembly
Platform.Interfaces.dll

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

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

public interface IProperties<in TObject, in TProperty, TValue>

Type Parameters

TObject

Object type.

Тип объекта.

TProperty

Property reference type.

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

TValue

Property value type.

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

Methods

GetValue(TObject, TProperty)

Gets the value of the property in the specified object.

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

TValue GetValue(TObject @object, TProperty property)

Parameters

object TObject

The object reference.

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

property TProperty

The property reference.

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

Returns

TValue

The value of the property.

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

SetValue(TObject, TProperty, TValue)

Sets the value of a property in the specified object.

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

void SetValue(TObject @object, TProperty property, TValue value)

Parameters

object TObject

The object reference.

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

property TProperty

The property reference.

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

value TValue

The value.

Значение.