Skip to content

},System.Func{--0,--2,--1},System.Func{--2})} },System.Linq.Expressions.Expression{System.Func{--0,--3}},System.Func{--0,--2,--3,--1},System.Func{--2},System.Func{--3})} },System.Linq.Expressions.Expression{System.Func{--0,--3}},System.Linq.Expressions.Expression{System.Func{--0,--4}},System.Func{--0,--2,--3,--4,--1},System.Func{--2},System.Func{--3},System.Func{--4})} },System.Linq.Expressions.Expression{System.Func{--0,--3}},System.Linq.Expressions.Expression{System.Func{--0,--4}},System.Linq.Expressions.Expression{System.Func{--0,--5}},System.Func{--0,--2,--3,--4,--5,--1},System.Func{--2},System.Func{--3},System.Func{--4},System.Func{--5})} },System.Linq.Expressions.Expression{System.Func{--0,--3}},System.Linq.Expressions.Expression{System.Func{--0,--4}},System.Linq.Expressions.Expression{System.Func{--0,--5}},System.Linq.Expressions.Expression{System.Func{--0,--6}},System.Func{--0,--2,--3,--4,--5,--6,--1},System.Func{--2},System.Func{--3},System.Func{--4},System.Func{--5},System.Func{--6})} },System.Linq.Expressions.Expression{System.Func{--0,--3}},System.Linq.Expressions.Expression{System.Func{--0,--4}},System.Linq.Expressions.Expression{System.Func{--0,--5}},System.Linq.Expressions.Expression{System.Func{--0,--6}},System.Linq.Expressions.Expression{System.Func{--0,--7}},System.Func{--0,--2,--3,--4,--5,--6,--7,--1},System.Func{--2},System.Func{--3},System.Func{--4},System.Func{--5},System.Func{--6},System.Func{--7})}

NotifyPropertyChangedEx.WhenChanged(TObject, Expression>, Func, Func?) method

Defined in

Type: NotifyPropertyChangedEx Namespace: DynamicData.Binding Assembly: DynamicData.dll

Applies to

net10.0, netstandard2.0

Overloads

  1. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Func<TObject, TProperty1?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null) where TObject : INotifyPropertyChanged

  2. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Func<TObject, TProperty1?, TProperty2?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null) where TObject : INotifyPropertyChanged

  3. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null) where TObject : INotifyPropertyChanged

  4. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null) where TObject : INotifyPropertyChanged

  5. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4, TProperty5>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Expression<Func<TObject, TProperty5>> p5, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TProperty5?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null, Func<TProperty5>? p5Fallback = null) where TObject : INotifyPropertyChanged

  6. public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4, TProperty5, TProperty6>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Expression<Func<TObject, TProperty5>> p5, Expression<Func<TObject, TProperty6>> p6, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TProperty5?, TProperty6?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null, Func<TProperty5>? p5Fallback = null, Func<TProperty6>? p6Fallback = null) where TObject : INotifyPropertyChanged

1. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Func<TObject, TProperty1?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.

2. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Func<TObject, TProperty1?, TProperty2?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.
TProperty2The type of the second property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
p2Expression>An expression to the second property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.
p2Fallback = nullFunc?Provides a fall back value for the second property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.

3. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.
TProperty2The type of the second property.
TProperty3The type of the third property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
p2Expression>An expression to the second property.
p3Expression>An expression to the third property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.
p2Fallback = nullFunc?Provides a fall back value for the second property in case of the property value cannot be obtained.
p3Fallback = nullFunc?Provides a fall back value for the third property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.

4. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.
TProperty2The type of the second property.
TProperty3The type of the third property.
TProperty4The type of the fourth property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
p2Expression>An expression to the second property.
p3Expression>An expression to the third property.
p4Expression>An expression to the fourth property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.
p2Fallback = nullFunc?Provides a fall back value for the second property in case of the property value cannot be obtained.
p3Fallback = nullFunc?Provides a fall back value for the third property in case of the property value cannot be obtained.
p4Fallback = nullFunc?Provides a fall back value for the fourth property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.

5. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4, TProperty5>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Expression<Func<TObject, TProperty5>> p5, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TProperty5?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null, Func<TProperty5>? p5Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.
TProperty2The type of the second property.
TProperty3The type of the third property.
TProperty4The type of the fourth property.
TProperty5The type of the fifth property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
p2Expression>An expression to the second property.
p3Expression>An expression to the third property.
p4Expression>An expression to the fourth property.
p5Expression>An expression to the fifth property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.
p2Fallback = nullFunc?Provides a fall back value for the second property in case of the property value cannot be obtained.
p3Fallback = nullFunc?Provides a fall back value for the third property in case of the property value cannot be obtained.
p4Fallback = nullFunc?Provides a fall back value for the fourth property in case of the property value cannot be obtained.
p5Fallback = nullFunc?Provides a fall back value for the fifth property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.

6. Overload

public static IObservable<TResult?> WhenChanged<TObject, TResult, TProperty1, TProperty2, TProperty3, TProperty4, TProperty5, TProperty6>(this TObject source, Expression<Func<TObject, TProperty1>> p1, Expression<Func<TObject, TProperty2>> p2, Expression<Func<TObject, TProperty3>> p3, Expression<Func<TObject, TProperty4>> p4, Expression<Func<TObject, TProperty5>> p5, Expression<Func<TObject, TProperty6>> p6, Func<TObject, TProperty1?, TProperty2?, TProperty3?, TProperty4?, TProperty5?, TProperty6?, TResult> resultSelector, Func<TProperty1>? p1Fallback = null, Func<TProperty2>? p2Fallback = null, Func<TProperty3>? p3Fallback = null, Func<TProperty4>? p4Fallback = null, Func<TProperty5>? p5Fallback = null, Func<TProperty6>? p6Fallback = null) where TObject : INotifyPropertyChanged

View source

Summary: Produces an observable based on the combined values of the specified properties, including the initial value. ** A fallback value may be specified to ensure a notification is received when a value is unobtainable. For example when observing Parent.Child.Age, if Child is null the value is unobtainable as Age is a struct and cannot be set to Null. For an object like Parent.Child.Sibling, sibling is an object so if Child is null, the value null and obtainable and is returned as null.

Type parameters

NameDescription
TObjectThe type of the object.
TResultThe type of the result.
TProperty1The type of the first property.
TProperty2The type of the second property.
TProperty3The type of the third property.
TProperty4The type of the fourth property.
TProperty5The type of the fifth property.
TProperty6The type of the sixth property.

Parameters

NameTypeDescription
sourceTObjectThe source object.
p1Expression>An expression to the first property.
p2Expression>An expression to the second property.
p3Expression>An expression to the third property.
p4Expression>An expression to the fourth property.
p5Expression>An expression to the fifth property.
p6Expression>An expression to the sixth property.
resultSelectorFuncA function which will select the result from the properties and the source.
p1Fallback = nullFunc?Provides a fall back value for the first property in case of the property value cannot be obtained.
p2Fallback = nullFunc?Provides a fall back value for the second property in case of the property value cannot be obtained.
p3Fallback = nullFunc?Provides a fall back value for the third property in case of the property value cannot be obtained.
p4Fallback = nullFunc?Provides a fall back value for the fourth property in case of the property value cannot be obtained.
p5Fallback = nullFunc?Provides a fall back value for the fifth property in case of the property value cannot be obtained.
p6Fallback = nullFunc?Provides a fall back value for the sixth property in case of the property value cannot be obtained.

Returns: IObservable -- An observable which emits the results.