Table of Contents

Class ObservedTransformedValue<TValue, TTransformedValue>

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Observes a value and keeps an automatically updated transformed version of it.

[Version(4, 5, 0)]
public class ObservedTransformedValue<TValue, TTransformedValue>

Type Parameters

TValue
TTransformedValue
Inheritance
ObservedTransformedValue<TValue, TTransformedValue>
Inherited Members
Extension Methods

Constructors

ObservedTransformedValue(TValue, Func<TValue, TTransformedValue>)

Creates a new observed transformed value. Whenever the input value changes, the transformed value is recalculated and the change event is triggered.

Properties

Value

The current input value. Setting it automatically updates the transformed value.

Events

TransformedValueChanged

Raised when the transformed value changes.