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