public static void ArrayPush<T>(ref T[] table, object value)
Array.Resize(ref table, table.Length + 1);
table.SetValue(value, table.Length - 1);
public static void Main()
string[] fruits = {"apple", "orange"};
ArrayPush(ref fruits, "banana");
Array.ForEach(fruits, (e) => Console.WriteLine(e));