mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 11:42:52 +00:00
Added multivar create notification
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reactive.Disposables;
|
||||
|
||||
namespace Sharp7.Rx.Extensions
|
||||
@@ -9,5 +11,11 @@ namespace Sharp7.Rx.Extensions
|
||||
{
|
||||
compositeDisposable.Add(disposable);
|
||||
}
|
||||
|
||||
public static void DisposeItems(this IEnumerable<object> disposables)
|
||||
{
|
||||
foreach (IDisposable disposable in disposables.OfType<IDisposable>())
|
||||
disposable?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user