공부중인데 이거 어떻게 사용해야 하는지 모르겠다.



public static Delegate[] Delegates { get; private set; }

Delegates = new Delegate[5];

Delegates[0] = (Delegate) new test_method_delegate(test_method);


public delegate void test_method_delegate(int parameter);

public static void test_method(int parameter)

{

Console.WriteLine(parameter);

}



코드 보면 아예 Delegate 클래스를 배열로 만들었던데 (Delegates)


이거 어떻게 사용함?




Delegates[0](1234);


하니까 안되던데