제네릭 클래스


제네릭 클래스

using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp26 { class MyClass { private T[] ts; private int count = 0; public MyClass(int length) { ts = new T[length]; count = length; } public void Insert(params T[] args) { for (int i = 0; i < args.Length; i++) { ts[i] = args[i]; } ..


원문링크 : 제네릭 클래스