TimeSpan 클래스는 XmlSerializer으로 serialize가 제대로 되지 않습니다. TimeSpan 클래스를 XmlSerializer으로 serialize하려하면, 아무런 에러나 exception이 발생하지 않습니다. 하지만 실제로는 serialize가 되지 않습니다. 아래 예제를 봅시다. using System; using System.Xml; using System.Xml.Serialization; namespace XmlSerializerTest { class Program { static void Main(string[] args) { TimeSpan t1 = TimeSpan.FromSeconds(10); Console.WriteLine(t1); XmlSerializer seriali..
앞에서 보였던 GenericDictionaryXmlSerializer 클래스 2 사용 예제이다. using System; using System.Collections.Generic; using System.Xml; using GenericDictionaryXmlSerialization; namespace TestGenericDictionaryXmlSerialization { class Program { static void Main(string[] args) { Random myRandom = new Random(); Dictionary myDictionary = new Dictionary(); myDictionary["1st"] = myRandom.Next(10); myDictionary["2nd"] ..
GenericDictionaryXmlSerialization.GenericDictionaryXmlSerializer 클래스 코드입니다. 앞의 예제에서는 Deserialize mthod를 Deserialize(XmlReader reader, Dictionary dictionary) 형태로 해서 Dictionary를 파라미터로 받고 있습니다. 이런 형식은 XmlSerializer.Deserialize method와는 다른 형식이죠. 아래의 클래스는 XmlSerializer.Deserialize method와 비슷한 형식입니다. 즉 파라미터로는 XmlReader만 받고 있습니다. 그리고 Dictionary 을 반환하고 있습니다. using System; using System.Collections.Generi..
- Total
- Today
- Yesterday
- c#
- 애드센스숨기기
- Microsoft
- Automation
- java
- iTextSharp
- READYSTATE_COMPLETE
- Rollback Rx
- ScreenHunter
- 유틸리티
- 애드센스감추기
- Phalanger
- AxWebBrowser
- DotNetMagic
- tagREADYSTATE
- registry
- windows
- Sample Code
- WinAutomation
- AdSense감추기
- AdSense숨기기
- download.com
- Service pack
- autohotkey
- Regular Expressions
- 스크린캡쳐
- .net framework
- iText
- jre
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |