일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- jupyter lab
- C# delegate
- 다트 언어
- Flutter
- C언어 포인터
- Houdini
- c# 윈폼
- Algorithm
- 도커
- github
- c#
- vim
- docker
- Unity
- 유니티
- Data Structure
- C++
- git
- gitlab
- c# 추상 클래스
- dart 언어
- c# winform
- 깃
- jupyter
- 플러터
- 포인터
- HTML
- Python
- 구조체
- c언어
Archives
- Today
- Total
목록c# 대리자 체인 (1)
nomad-programmer
[Programming/C#] 대리자 체인
대리자에는 유용한 속성이 있다. 그것은 바로 대리자 하나가 여러 개의 메소드를 동시에 참조할 수 있다는 것이다. delegate void MyDelegate(string message); void Msg1(string msg){ Console.WriteLine("Msg1() : {0}", msg); } void Msg2(string msg){ Console.WriteLine("Msg2() : {0}", msg); } void Msg3(string msg){ Console.WriteLine("Msg3() : {0}", msg); } MyDelegate foo = new MyDelegate(Msg1); foo += new MyDelegate(Msg2); foo += new MyDelegate(Msg3); f..
Programming/C#
2020. 9. 22. 21:58