Table of Contents

Method ToListDistinct

Namespace
Innova.Rest.Client
Assembly
Innova.Rest.Client.dll

ToListDistinct<TValue>(Expression<Func<T, TValue>>, Expression<Func<T, bool>>, CancellationToken)

Retrieves a distinct list of values based on the specified selector and filter.

public Task<List<TValue>> ToListDistinct<TValue>(Expression<Func<T, TValue>> selector, Expression<Func<T, bool>> where, CancellationToken cancellationToken = default)

Parameters

selector Expression<Func<T, TValue>>

The selector expression.

where Expression<Func<T, bool>>

The filter expression.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<TValue>>

A task that represents the asynchronous operation. The task result contains the distinct list of values.

Type Parameters

TValue

The type of the value.