Generic Dictionary는 Xml.Serialization.XmlSerializer을 사용해서 serialize할 수 없다. 그래서 Generic Dictionary을 XML 파일로 serialize할 수 있는 GenericDictionaryXmlSerializer 클래스를 만들어 보았다. 이 클래스는 아래 링크에 있는 코드를 응용해서 만든 것이다. http://blogs.msdn.com/psheill/archive/2005/04/09/406823.aspx 위의 링크에 있는 코드는 Generic 클래스를 사용하지 않았는데, 필자의 코드는 Generic 코드를 사용한 점이 다르다. using System; using System.Collections.Generic; using System.Xml;..
아래 예제는 Generic Dictionary의 XML Serialization 가능 여부를 시험해 보기 위해서 만든 것이다. 결과는 Exception이 발생했다. Generic Dictionary 타입은 지원하지 않는다는 메세지가 나왔다. using System; using System.Collections.Generic; using System.Xml; using System.Xml.Serialization; namespace SerializationTest { class Program { static void Main(string[] args) { Dictionary myDictionary = new Dictionary(); myDictionary["One"] = 1; myDictionary["Tw..
Xml.Serialization 을 이용해서 DateTime 멤버를 포함하고 있는 객체의 Serialization을 시도해보았다. 결과는 만족스러웠다. 아무런 문제 없이 Serialization이 잘 이루어졌다. 아래는 예제 코드이다. 아래에서 Chrono 클래스는 string field 와 DateTime field를 가지고 있다. using System; using System.Collections.Generic; using System.Xml; using System.Xml.Serialization; namespace SerializationTest { class Program { static void Main(string[] args) { Chrono c1 = new Chrono(); Chrono..
- Total
- Today
- Yesterday
- tagREADYSTATE
- 스크린캡쳐
- download.com
- AdSense숨기기
- windows
- Service pack
- Phalanger
- Microsoft
- jre
- READYSTATE_COMPLETE
- iText
- ScreenHunter
- Rollback Rx
- c#
- AdSense감추기
- autohotkey
- Sample Code
- java
- registry
- Automation
- 유틸리티
- AxWebBrowser
- DotNetMagic
- Regular Expressions
- .net framework
- 애드센스감추기
- WinAutomation
- iTextSharp
- 애드센스숨기기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |