73
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:
- DefaultfEmpty
- Range
- Repeat
- Empty
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