모름

using System;

namespace CopyingArray {
    class Program {
        static void CopyArray<T>(T[] source, T[] target) {
            for (int i = 0; i < source.Length; i++) {
                target[i] = source[i];
            }
        }

        static void Main(string[] args) {
            int[] source = { 1, 2, 3, 4, 5 };
            int[] target = new int[source.Length];

            CopyArray<int>(source, target);

            foreach(int element in target) {
                Console.WriteLine(element);
            }

            string[] source2 = { "일", "이", "삼", "사", "오" };
            string[] target2 = new string[source2.Length];

            CopyArray<string>(source2, target2);

            foreach (string element in target2) {
                Console.WriteLine(element);
            }
        }
    }
}