score:1
you didn't say how you want to merge them, so i'll assume you want the union of both sets (i.e. combining them and eliminating duplicates):
var finalticket = ticketstatus.union(ticketsev);
if you want to keep duplicates or know there won't be any, you can concatenate the sequences instead:
var finalticket = ticketstatus.concat(ticketsev);
score:2
var finalticket = ticketstatus.union(ticketsev); // remove duplicates
var finalticket = ticketstatus.concat(ticketsev); // keep duplicates
score:3
simple use this to concatenate and remove duplicate
var finalticket = ticketstatus.union(ticketsev);
to simple concatenation and sort. duplicates are preserved. use .concat() on place of .union()
to implement this in best way follow the following links:
how to: combine and compare string collections (linq)
merging two collection<t>
create a list from two object lists with linq
Source: stackoverflow.com
Related Query
- LINQ Source Code Available
- Merge duplicate data without affecting others in LINQ code
- creating Linq to sqlite dbml from DbLinq source code
- How to merge two lists while adding metadata indicating value source with LINQ statement?
- Merge records in LINQ
- source code for LINQ 101 samples
- Merge Datatable records using LINQ
- c# Linq or code to extract groups from a single list of source data
- Code First Entity Framework Linq Statement Returning Missing Records
- How do I minimize C#, LINQ code in Deleting Multiple Records
- Data paging in linq without removing records from the data source
- how to merge duplicate records into one record by linq
- Convert string[] to int[] in one line of code using LINQ
- Code equivalent to the 'let' keyword in chained LINQ extension method calls
- Select multiple records based on list of Id's with linq
- How to select only the records with the highest date in LINQ
- Linq code to select one item
- Update records using LINQ
- How are people unit testing code that uses Linq to SQL
- How to merge a collection of collections in Linq
- Get top N records using LINQ to Entities
- How to retrieve last 5 records using LINQ method or query expression in C#
- Best way to delete multiple records in a LINQ query?
- Selecting first 100 records using Linq
- LINQ query to perform a projection, skipping or wrapping exceptions where source throws on IEnumerable.GetNext()
- Merge two List<object> into one List in Linq
- Merge 2 arrays using LINQ
- Merge multiple Lists into one List with LINQ
- Linq to select latest records
- Syntax to execute code block inside Linq query?
More Query from same tag
- Building xml from scratch and getting result in string?
- Retrieving strongly typed Property names using Expression Trees
- LINQtoXML nested collections and values?
- Linq order by day of a datetime in C#
- ASP.NET - Controls submit wrong information
- How to reduce multiple nested foreach blocks
- Differences in LINQ syntax between VB.Net and C#
- Deep null check inside linq expression, is there a better way?
- Is LINQ implementation of Entity Framework inappropriate?
- 'The Query Results cannot be enumerated more than once'
- Xpath best practices
- rewrite Linq 'to other format'
- Use LINQ to get a items in a list
- Any chance to get unique records using Linq (C#)?
- OData concern for SQL injection
- How to group list of string using Linq?
- C#:Conversion of Dictionary<String,String> to Dictionary<String, Dictionary<String,String>>
- Convert GUID to string Entity Framework
- How to make a custom order with Dictionary in C#?
- How to create new columns from List<T> values?
- LINQ to Entities does not recognize the method - Entity Framework and DDD
- Elegant way of combining two LINQ queries
- Expression.Property(param, field) is "trolling" me [System.ArgumentException] = {"Instance property 'B.Name' is not defined for type A"}
- Can't get Plan or Plan.Name from Stripe.Net Invoice using Linq
- Return non-distinct object based on three different fields
- LINQ- join with subqueries
- How to perform a recursive function in c# using linq
- Help with Linq left join
- WCF service operations to return an object graph
- Failed to perform comma seperated list aggregation in LINQ