Horje
c# merge two lists as queryable Code Example
c# merge two lists as queryable
var list3 = list1.Concat(list2);

// or

var list4 = list1.Union(list2);
// Union is a set operation - it returns distinct values.

// Concat simply returns the items from the first sequence followed by the items from the second sequence; the resulting sequence can include duplicate items.

// You can think of Union as Concat followed by Distinct.




Csharp

Related
log4net rollingfileappender c# Code Example log4net rollingfileappender c# Code Example
prime number algorithm Code Example prime number algorithm Code Example
c# read string Code Example c# read string Code Example
linq convert list to another list Code Example linq convert list to another list Code Example
c# compare char arrays Code Example c# compare char arrays Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8