Guest User

Untitled

a guest
Mar 13th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. public class Test
  5. {
  6.     public static void Main()
  7.     {
  8.         List<string> a = new[] { "a", "b", "c" }.ToList();
  9.         List<string> b = new[] { "d", "e", "f" }.ToList();
  10.         List<string> c = new[] { "g", "h", "i" }.ToList();
  11.         List<string> d = new[] { "j", "k", "l" }.ToList();
  12.         List<string> e = a.Union(b).Union(c).Union(d).ToList();
  13.         Console.WriteLine(string.Join(", ", e));
  14.     }
  15. }
Add Comment
Please, Sign In to add comment