Home » LINQ Generation Operators

LINQ Generation Operators

by Online Tutorials Library

LINQ Generation Operations

In LINQ, generation operations are used to create the new sequence of the elements. In LINQ, we have a different type of generation operator methods available. These are:

  1. DefaultfEmpty
  2. Range
  3. Repeat
  4. Empty

LINQ Generation Operations

These LINQ generation operators will help us to generate a new sequence of elements.

The following table shows more detailed information related to generation operator methods.

Method Description
DefaultfEmpty If the collection contains the empty elements, then it will return the default value.
Empty It returns the empty collection of sequences.
Range It returns the collection that contains a sequence of numbers.
Repeat It returns a collection that contains the one repeated value-based on a specified length.

Next TopicLINQ Range Method

You may also like