Skip to content

},System.Action{--0},System.Action{--0})} ,System.Action{--0},System.Action{--0})} ,System.Action{--0},System.Action{--0})} ,System.Action{--0})}

AutoPersistHelperMixins.ActOnEveryObject(IObservable>, Action, Action) method

Defined in

Type: AutoPersistHelperMixins Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-tvos26.0, net9.0, net8.0, net462, net481

Overloads

  1. public static IDisposable ActOnEveryObject<TItem>(this IObservable<IReactiveChangeSet<TItem>> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

  2. public static IDisposable ActOnEveryObject<TItem>(this ObservableCollection<TItem> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

  3. public static IDisposable ActOnEveryObject<TItem>(this ReadOnlyObservableCollection<TItem> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

  4. public static IDisposable ActOnEveryObject<TItem, TCollection>(this TCollection @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem>

1. Overload

public static IDisposable ActOnEveryObject<TItem>(this IObservable<IReactiveChangeSet<TItem>> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisIObservable>--
onAddAction--
onRemoveAction--

Returns: IDisposable

2. Overload

public static IDisposable ActOnEveryObject<TItem>(this ObservableCollection<TItem> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
onAddAction--
onRemoveAction--

Returns: IDisposable

3. Overload

public static IDisposable ActOnEveryObject<TItem>(this ReadOnlyObservableCollection<TItem> @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
onAddAction--
onRemoveAction--

Returns: IDisposable

4. Overload

public static IDisposable ActOnEveryObject<TItem, TCollection>(this TCollection @this, Action<TItem> onAdd, Action<TItem> onRemove) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem>

View source

Type parameters

NameDescription
TItem--
TCollection--

Parameters

NameTypeDescription
thisTCollection--
onAddAction--
onRemoveAction--

Returns: IDisposable