KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to merge two lists using LINQ like the following: class Person { public int ID { get; set;} public string Name { get; set;} public Person Merge( Person p) { return new Person { ID = this.ID, Name = this.Name + " " + p.Name }; } } I have two List of person: list1: 1, A 2, B list2: 2, C 3, D I want the result like the following result: 1, A 2, B C 3, D Any help!
Tags (comma-separated)
Save Edits
Cancel