Class ExpressionWatcher<TSource, TProperty>
Inherited Members
Namespace: PoeShared.Bindings
Assembly: PoeShared.dll
Syntax
public sealed class ExpressionWatcher<TSource, TProperty> : DisposableReactiveObject, IValueWatcher, IValueProvider, IDisposable, INotifyPropertyChanged where TSource : class
Type Parameters
| Name | Description |
|---|---|
| TSource | |
| TProperty |
Constructors
| Name | Description |
|---|---|
| ExpressionWatcher(Expression<Func<TSource, TProperty>>) | |
| ExpressionWatcher(Expression<Func<TSource, TProperty>>, Expression<Func<TSource, bool>>) |
Properties
| Name | Description |
|---|---|
| CanSetValue | True if is is possible to set current value, requires SupportsSetValue and Source to be non-null |
| Error | Gets the exception representing the error that occurred during value retrieval. |
| HasValue | Gets a value indicating whether this provider has a value. |
| Source | |
| SourceExpression | |
| SupportsSetValue | True if this value watcher knows how to set current Value |
| Value |
Methods
| Name | Description |
|---|---|
| FormatToString(ToStringBuilder) | |
| SetCurrentValue(object) | Attempts to set current value, should throw only in extreme cases (e.g. misconfiguration), otherwise sets Error |
| SetCurrentValue(TProperty) |
Extension Methods
NotifyPropertyChangedExtensions.GetPropertyName<TObject, T1>(TObject, Expression<Func<TObject, T1>>)
NotifyPropertyChangedExtensions.WhenAnyProperty<TObject, T1>(TObject, Expression<Func<TObject, T1>>)