제너릭2 Generics Generics 형식 인수를 생략하고 컴파일러에서 자동으로 유추하도록 한다. using System; namespace Generics { class Program { static void Main(string[] args) { var r1 = new Result { Success = true, Data = 5, Data2 = "Hello" }; var r2 = new Result { Success = true, Data = "John", Data2 = true }; Console.WriteLine(r1.ToString()); Console.WriteLine(r2.ToString()); Console.WriteLine(); var helper = new ResultPrinter(); helper.Prin.. 2022. 9. 4. Generic https://www.youtube.com/watch?v=l6s7AvZx5j8 2022. 8. 16. 이전 1 다음