public delegate void ExecuteCallback();
클래스 실행자 { private ExecuteCallback _doExecute;델리게이트 객체에 여러 대의 델리게이트 추가에서 + = 기호가 무엇입니까?
public void AddMultiple()
{
// Add a delegate to MethodA
// This will work even if _doExecute is currently null
_doExecute += new Execute(MethodA);
// Add a delegate to MethodB also
_doExecute += new Execute(MethodB);
// Add a delegate to MethodC also
_doExecute += new Execute(MethodC);
}
public void MethodA()
{
//...
}
public void MethodB()
{
//...
}
public void MethodC()
{
//...
}
}
귀하의 질문에 정확히 무엇이 있습니까? – thecoop