1.24 영상 강의(26~30) 내용 정리(1)
Delegate(대리자) public delegate [반환형식] [이름] (매개변수) - method 와 동일한 Type의 delegate를 선언 - 선언한 delegate 변수를 생성 - 생성한 delegate 에 사용할 method를 참조 Example namespace ConsoleApplication { delegate int FuncDelegate(int a, int b); class Program { static int Plus(int a, int b) { return a + b; } static int Minus(int a, int b) { return a - b; } static void Main(string[] args) { FuncDelegate plusDelegate = Plus; ..