惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
腾讯CDC
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Engineering at Meta
Engineering at Meta
C
Check Point Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 司徒正美

博客园 - zhanqiangz(闲云野鹤)

在ReportService2005.asmx 找不到 ReportingService2005 类 BizTalk相关的问题,打算持续更新。 恢复被格式化过的硬盘数据 BizTalk - Most possible reason for “is Delimiters are not unique” in EDI transaction What happens if BizTalk artifacts are not GACed? BizTalk - How to create custom functoid. BizTalk - Carefully use Send Port Group BizTalk - How to debug map in VS2005 BizTalk-Get to know functoid. BizTalk - String Functoids 一辈子都忘不了的七夕节 Head First Design patterns笔记-Singleton patterns (从“一夫一妻制社会中婚约的达成”看单件模式) Global.asax文件里的Application_Init能触发吗? 使用HttpApplication实例(翻译) Head First Design patterns笔记-Decorator Patterns (从”用不同技能武装自己”看装饰模式) Head First Design patterns笔记-Observer Patterns (从TFS的Project alerts功能看观察者模式) ASP.NET 2.0的编译行为 Head First Design patterns笔记-Strategy Patterns (从不同的人使用不同的交通工具上班看策略模式) 晕菜了,TFS居然把vss里的那个rollback功能cut掉了,还好有人写了工具.
XmlSerializer is not trustable
zhanqiangz(闲云野鹤) · 2009-01-08 · via 博客园 - zhanqiangz(闲云野鹤)

XmlSerializer is stupid in many ways..., it did cause me a lot of trouble.

1.       Normally we use it to serialize a class to xml stream by calling Serialize() method, it this  method  has several overloaded versions. When XmlSerializerNamespaces is specified as input parameter it is supposed to generate a prefix right before the xml tab, e.g. Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces ), but it does not always generate the expected result like <prefix:tagname..>. It could be caused by different .Net framework versions installed, but the inconsistent behavior cause a lot of tricky problems.

2.       System.Xml.Serialization.XmlElementAttribute is used to determine what the xml tag for current field is after serialization, for example.

Public  class DemoClass

{

Private string  m _Name;

System.Xml.Serialization.XmlElementAttribute(“FullName”)

Public string Name

{

                Get {return m_Name;}

                Set {m_Name =value;}

}

}

After serialization, the corresponding  xml tag for Name should be FullName, but XmlSerializer does not always output FullName, sometimes it will output Name directly. You also can find a tons of XmlSerializer related bug descriptions on internet, google it.