아래는 Random 예제이다. i 값이 20부터 1까지 하나씩 줄어든다. 이때, i 값 보다 작은 임의의 정수를 출력하는 예제이다. using System; namespace RandomSample { class Program { static void Main(string[] args) { Random myRandom = new Random(); for (int i = 20; i > 0; i--) { Console.WriteLine(myRandom.Next(i)); } } } }
아래는 Event에 Anonymous method를 추가하는 간단한 예제 코드이다. using System; namespace EventSample { public delegate void Conduct(); class Program { public static event Conduct myEvent; static void Main(string[] args) { myEvent += delegate() { Console.WriteLine("Hi"); }; myEvent += delegate() { Console.WriteLine("Ho"); }; myEvent(); } } }
아래는 Anonymous method를 Adapter로 이용한 간단한 예제이다. using System; namespace DelegateSample2 { delegate void Action(); class Program { static void Main(string[] args) { myAction += delegate() { Console.WriteLine("1st"); }; myAction += delegate() { Console.WriteLine("2nd"); }; myAction(); } public static Action myAction; } }
- Total
- Today
- Yesterday
- 유틸리티
- AdSense숨기기
- 스크린캡쳐
- windows
- Service pack
- jre
- tagREADYSTATE
- 애드센스감추기
- c#
- AxWebBrowser
- WinAutomation
- Sample Code
- .net framework
- Rollback Rx
- Microsoft
- java
- AdSense감추기
- autohotkey
- DotNetMagic
- 애드센스숨기기
- ScreenHunter
- registry
- Phalanger
- download.com
- Automation
- iTextSharp
- Regular Expressions
- READYSTATE_COMPLETE
- iText
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |