18 lines
416 B
C#
18 lines
416 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ASS.Server.Extensions
|
|
{
|
|
public static class ArrayExtension
|
|
{
|
|
public static T[] PreAppend<T>(this T[] array, params T[] toAppend)
|
|
{
|
|
var n = new T[toAppend.Length + array.Length];
|
|
toAppend.CopyTo(n, 0);
|
|
array.CopyTo(n, toAppend.Length);
|
|
return n;
|
|
}
|
|
}
|
|
}
|