C#의 일반화 프로그래밍 Generic Programming C++에서 template를 C#에서 어떻게 하는 지 알아본다. 일반화 메서드 메서드 이름 뒤에 를 붙여 임의의 타입에 대해 동작하는 일반화 메서드를 정의한다. void CopyArray (T[] source, T[] target) { for(int i =0;i 10) throw new FilterableException() { ErroNo = num }; else Console.WriteLine($"Output : {num}"); } catch (FilterableException e) when (e.ErroNo < 0) { Console.WriteLine("Negative Input is not allowed"); } catch (Filte..