Class ConsumerExtensions
- Namespace
- BenchmarkDotNet.Engines
- Assembly
- BenchmarkDotNet.dll
public static class ConsumerExtensions
- Inheritance
-
ConsumerExtensions
Methods
Consume(IEnumerable, Consumer)
executes and consumes given IEnumerable
public static void Consume(this IEnumerable enumerable, Consumer consumer)
Parameters
enumerable
IEnumerablenon-generic IEnumerable
consumer
Consumerinstance of Consumer. Create it on your own once, store it in the field and just pass here
Consume(IQueryable, Consumer)
executes and consumes given IQueryable
public static void Consume(this IQueryable queryable, Consumer consumer)
Parameters
queryable
IQueryablenon-generic IQueryable
consumer
Consumerinstance of Consumer. Create it on your own once, store it in the field and just pass here
Consume<T>(IEnumerable<T>, Consumer)
executes and consumes given IEnumerable<T>
public static void Consume<T>(this IEnumerable<T> enumerable, Consumer consumer)
Parameters
enumerable
IEnumerable<T>generic IEnumerable<T>
consumer
Consumerinstance of Consumer. Create it on your own once, store it in the field and just pass here
Type Parameters
T
Consume<T>(IQueryable<T>, Consumer)
executes and consumes given IQueryable<T>
public static void Consume<T>(this IQueryable<T> queryable, Consumer consumer)
Parameters
queryable
IQueryable<T>generic IQueryable<T>
consumer
Consumerinstance of Consumer. Create it on your own once, store it in the field and just pass here
Type Parameters
T