Skip to content

)}

LiveQuery.Count() method

Defined in

Type: LiveQuery Namespace: ReactiveList.Reactive.Queries Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public IObservable<int> Count()

  2. public IObservable<int> Count(Func<T, bool> predicate)

1. Overload

public IObservable<int> Count()

View source (opens in a new tab)

Summary: Reports how many items the query includes, now and whenever the number changes.

Returns: IObservable (opens in a new tab) -- The state stream, which completes when the source is disposed.

2. Overload

public IObservable<int> Count(Func<T, bool> predicate)

View source (opens in a new tab)

Summary: Reports how many items satisfy a condition, now and whenever the number changes.

Parameters

NameTypeDescription
predicateFunc (opens in a new tab)The condition.

Returns: IObservable (opens in a new tab) -- The state stream, which completes when the source is disposed.