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
TObjectObject type.
Тип объекта.
TPropertyProperty reference type.
Тип ссылки на свойство.
TValueProperty value type.
Тип значения свойства.
Methods
GetValue(TObject, TProperty)
Gets the value of the property in the specified object.
Получает значение свойства в указанном объекте.
TValue GetValue(TObject @object, TProperty property)
Parameters
objectTObjectThe object reference.
Ссылка на объект.
propertyTPropertyThe 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
objectTObjectThe object reference.
Ссылка на объект.
propertyTPropertyThe property reference.
Ссылка на свойство.
valueTValueThe value.
Значение.