Table of Contents

Class MongoEnumerable

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Enumerable Extensions for MongoDB.

public static class MongoEnumerable
Inheritance
MongoEnumerable
Inherited Members

Methods

AllElements<TSource>(IEnumerable<TSource>)

Represents all elements in an array (corresponds to the server's "$[]" update operator).

AllMatchingElements<TSource>(IEnumerable<TSource>, string)

Represents all matching elements in an array when using an array filter (corresponds to the server's "$[identifier]" update operator).

BottomN<TSource, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>, int)

Returns the bottom n results.

BottomN<TSource, TKey, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the bottom n results.

Bottom<TSource, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>)

Returns the bottom result.

FirstMatchingElement<TSource>(IEnumerable<TSource>)

Represents the first matching element in an array used in a query (corresponds to the server's "$" update operator).

FirstN<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, int)

Returns the first n results.

FirstN<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the first n results.

LastN<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, int)

Returns the last n results.

LastN<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the last n results.

MaxN<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, int)

Returns the max n results.

MaxN<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the max n results.

MinN<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, int)

Returns the min n results.

MinN<TSource, TKey, TResult>(IEnumerable<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the min n results.

StandardDeviationPopulation(IEnumerable<decimal>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<double>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<int>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<long>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<decimal?>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<double?>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<int?>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<long?>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<float?>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation(IEnumerable<float>)

Computes the population standard deviation of a sequence of values.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, decimal>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, double>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, int>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, long>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, decimal?>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, double?>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, int?>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, long?>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, float?>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationPopulation<TSource>(IEnumerable<TSource>, Func<TSource, float>)

Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample(IEnumerable<decimal>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<double>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<int>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<long>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<decimal?>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<double?>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<int?>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<long?>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<float?>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample(IEnumerable<float>)

Computes the sample standard deviation of a sequence of values.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, decimal>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, double>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, int>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, long>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, decimal?>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, double?>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, int?>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, long?>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, float?>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

StandardDeviationSample<TSource>(IEnumerable<TSource>, Func<TSource, float>)

Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

TopN<TSource, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>, int)

Returns the top n results.

TopN<TSource, TKey, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>, TKey, Func<TKey, int>)

Returns the top n results.

Top<TSource, TResult>(IEnumerable<TSource>, SortDefinition<TSource>, Func<TSource, TResult>)

Returns the top n results.

Where<TSource>(IEnumerable<TSource>, Func<TSource, bool>, int)

Filters a sequence of values based on a predicate and limits the number of results.