일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- C# delegate
- 다트 언어
- 구조체
- dart 언어
- vim
- Houdini
- Flutter
- jupyter lab
- c#
- docker
- c# winform
- Python
- Data Structure
- 플러터
- gitlab
- C++
- github
- c# 윈폼
- git
- 도커
- c언어
- HTML
- 유니티
- 깃
- Algorithm
- 포인터
- c# 추상 클래스
- C언어 포인터
- jupyter
- Unity
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