Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Generation Operations

Generation refers to creating a new sequence of values.

The standard query operator methods that perform generation are listed in the following section.

Method Name

Description

C# Query Expression Syntax

Visual Basic Query Expression Syntax

More Information

DefaultIfEmpty

Replaces an empty collection with a default valued singleton collection.

Not applicable.

Not applicable.

Enumerable.DefaultIfEmpty

Queryable.DefaultIfEmpty

Empty

Returns an empty collection.

Not applicable.

Not applicable.

Enumerable.Empty<TResult>

Range

Generates a collection that contains a sequence of numbers.

Not applicable.

Not applicable.

Enumerable.Range

Repeat

Generates a collection that contains one repeated value.

Not applicable.

Not applicable.

Enumerable.Repeat<TResult>

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.