daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top