Skip to content

Commit

Permalink
Rename DD.Aggregation NotEmpty operator. Fixes #523
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandPheasant committed Apr 29, 2022
1 parent 6ce42aa commit 6d592bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DynamicData/Aggregation/CountEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static IObservable<bool> IsEmpty<TObject>(this IObservable<IChangeSet<TOb
/// <typeparam name="TKey">The type of the key.</typeparam>
/// <param name="source">The source.</param>
/// <returns>An observable which emits the count.</returns>
public static IObservable<bool> NotEmpty<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source)
public static IObservable<bool> IsNotEmpty<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source)
where TKey : notnull
{
return source.ForAggregation().Count().StartWith(0).Select(count => count > 0);
Expand All @@ -106,7 +106,7 @@ public static IObservable<bool> NotEmpty<TObject, TKey>(this IObservable<IChange
/// <typeparam name="TObject">The type of the object.</typeparam>
/// <param name="source">The source.</param>
/// <returns>An observable which emits the count.</returns>
public static IObservable<bool> NotEmpty<TObject>(this IObservable<IChangeSet<TObject>> source)
public static IObservable<bool> IsNotEmpty<TObject>(this IObservable<IChangeSet<TObject>> source)
{
return source.ForAggregation().Count().StartWith(0).Select(count => count > 0);
}
Expand Down

0 comments on commit 6d592bb

Please sign in to comment.