지식 창고
event Action 본문
event Action<String, bool> eventAction;
eventAction += Func_eventAction;
private void Func_eventAction(String name, bool bFirst)
{
}
private void click(object sender, RoutedEventArgs e)
{
if(eventAction != null)
{
String name = "test";
bool bFirst = false;
eventAction(name, bFirst);
}
}
'프로그래밍 > C#' 카테고리의 다른 글
Array (0) | 2021.11.02 |
---|---|
데이터 형식 사용하기 (0) | 2021.11.02 |
Delegate (0) | 2021.11.02 |
Visual Studio C# Interactive (0) | 2021.11.02 |
람다식 & LINQ (0) | 2021.11.02 |
Comments