Object Initializer 사용법을 설명하는 샘플코드이다. using System; namespace Sample { class Program { static void Main(string[] args) { Line L1 = new Line(); Point myP1 = new Point(); myP1.X = 1; myP1.Y = 2; Point myP2 = new Point(); myP2.X = 3; myP2.Y = 4; L1.P1 = myP1; L1.P2 = myP2; Console.WriteLine(L1.ToString()); Line L2 = new Line(); Point itsP1 = new Point { X = 5, Y = 6 }; // Object Initializers Point i..
Object Initializer를 이용하는 간단한 샘플코드이다. 아래에서 P1과 P2의 property에 값을 대입하는 방식을 살펴보라. using System; namespace Sample { class Program { static void Main(string[] args) { Point P1 = new Point(); P1.X = 2; P1.Y = 3; Console.WriteLine(P1.ToString()); // Object Initializers Point P2 = new Point { X = 7, Y = 8 }; Console.WriteLine(P2.ToString()); } } public class Point { int x; public int X { get { return x; ..
간단한 Lambda Expression 샘플 코드이다. Lambda Expression에서 return 값을 살펴보자. using System; namespace LambdaSample { class Program { delegate int Action(int number); static void Main(string[] args) { Action action1 = number => number + 2; Action action2 = number => { return number + 2; }; int i = action1(3); int j = action2(3); Console.WriteLine(i); Console.WriteLine(j); } } }
Anonymous Method와 Lambda Expression을 비교해보자. Lambda Expression이 조금 더 단순해보인다. using System; namespace DelegateSample { class Program { static void Main(string[] args) { Human Tom = new Human(); // Anonymous Method Tom.ActionDelegate += delegate(string text) { Console.WriteLine("Anonymous:" + text); }; // Lambda Expression Tom.ActionDelegate += (string text) => Console.WriteLine("Lambda1:" + text);..
Extension Methods 사용법은 2가지이다. 기존의 static method 사용법과 동일하게 쓰는 방법도 가능하다. 아래 예제는 exception 발생없이 잘 실행된다. Extension methods are static methods. Extension methods can only be declared in static classes. using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string s = "123"; int i = s.ToInt32(); int j = Extensions.ToInt32(s); Console.WriteLine(i); Console.Write..
const 대 readonly 비교 using System; namespace Test { class Program { static void Main(string[] args) { Some s1 = new Some(); Console.WriteLine(Some.constField); // const : 항상 static Console.WriteLine(s1.readonlyField1); Console.WriteLine(s1.readonlyField2); Some s2 = new Some(5); Console.WriteLine(s2.readonlyField2); } } class Some { // const readonly 공통 : 클래스 밖에서 값을 바꿀 수 없음 // const : 항상 static (..

I use Visual Studio 2005 Team Suite on Windows XP SP2 Korean. I installed [Visual Studio 2005 Team Edition for Database Professionals Add-on] And I changed [International Settings Language] from [English] to [Same as Microsoft Windows] (in this case, Korean) After that, All project templates for Visual C#, Visual Basic, and Visual J# are gone. Set VS2005 Language Option to English Tools > Option..
To perform a clean reset: 1. Press and hold down the Contacts and Inbox buttons. (2 + 3) 2. While holding down these buttons, use the stylus to lightly press the Reset button on the bottom of the iPAQ Pocket PC for about two seconds. 3. A dialogue box will pop up asking for confirmation. Press the Calendar button and the unit will begin the clean reset process.
Perform a hard reset only when you want to clear all user-installed settings, applications, and data from RAM (Random Access Memory), where data and applications you have loaded are stored. If the battery installed in your Pocket PC discharges completely, your Pocket PC will operate as if a hard reset had been performed once the battery has been recharged. CAUTION: If you perform a hard reset, y..
A soft reset does not erase any applications or saved data, but be sure to save any unsaved data before performing a soft reset since any unsaved data will be lost. Perform a soft reset when: ■ you want to stop all running applications ■ after installing a new application ■ if your Pocket PC “locks up” To perform a soft reset: 1. Locate the Reset button on the bottom of your Pocket PC. 2. Use th..
- Total
- Today
- Yesterday
- Phalanger
- Rollback Rx
- jre
- iText
- Regular Expressions
- Service pack
- tagREADYSTATE
- AxWebBrowser
- download.com
- autohotkey
- iTextSharp
- Automation
- c#
- .net framework
- 스크린캡쳐
- Sample Code
- registry
- ScreenHunter
- AdSense감추기
- windows
- READYSTATE_COMPLETE
- AdSense숨기기
- DotNetMagic
- java
- 유틸리티
- 애드센스감추기
- Microsoft
- 애드센스숨기기
- WinAutomation
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |