Advertisement
TizzyT

ConcatArrays -TizzyT

Jun 27th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1.         public static T[] Concat<T>(this T[] arr, params T[][] arrs)
  2.         {
  3.             List<T> collection = new List<T>();
  4.             collection.AddRange(arr);
  5.             foreach (T[] item in arrs) collection.AddRange(item);
  6.             return collection.ToArray();
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement