Table of Contents

Method ToListDistinct

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

ToListDistinct<TResult>(string, Expression<Func<T, bool>>, CancellationToken)

Retrieves a distinct list of results based on the specified criteria.

Task<List<TResult>> ToListDistinct<TResult>(string name, Expression<Func<T, bool>> where, CancellationToken cancellationToken = default)

Parameters

name string

The name of the result.

where Expression<Func<T, bool>>

The criteria to filter the results.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<TResult>>

A task representing the asynchronous operation.

Type Parameters

TResult

The type of the result.