The concatenation is a process in which one sequence is appended into another sequence. In LINQ, the concatenation operation contains only one operator that is known as Concat. It is used to append two same types of sequences or collections and return a new sequence or collection.
- It does not support query syntax in C# and VB.NET languages.
- It support method syntax in both C# and VB.NET languages.
- It present in both the Queryable and Enumerable class.
- It is implemented by using deferred execution.
- It allow duplicate elements.
As shown in the below image, here two sequences of the same types are concatenated into one sequence.
Sequence 1 is: p q r s y z Sequence 2 is: p m o e c z New Sequence: p q r s y z p m o e c z
Major Languages Used are: C# C Java Scala Python Ruby
- LINQ | Set Operator | Except
- LINQ | Filtering Operator | where
- LINQ | Quantifier Operator | Any
- LINQ | Quantifier Operator | Contains
- LINQ | Quantifier Operator | All
- LINQ | Set Operator | Distinct
- LINQ | Element Operator | First
- LINQ | Element Operator | Last
- LINQ | Set Operator | Union
- LINQ | Set Operator | Intersect
- LINQ | Partition Operator | Take
- LINQ | Partition Operator | Skip
- LINQ | Partition Operator | TakeWhile
- LINQ | Grouping Operator | ToLooKUp
- LINQ | Sorting Operator | ThenByDescending
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.