Castle.MircoKernel Class Diagram - Part I
摘要:One picture is worth a thousand wordsThe Class Diagram of Castle.MicroKernel.ModelHope it is helpful to understand the Castle MicroKernel architecture.
阅读全文
.Net 2.0 下Data Container性能比较: Binary Serialize Dataset vs Custom Classes
摘要:我们已经听过太多应该是用 Dataset还是应该使用自定义Class作为container的争论了.很多Anti-Dataseter 对于.Net 1.1 下面dataset蹩脚的xml序列化方式很是不屑. 不可否认, xml序列化的确是dataset的一大缺陷. 但是Microsoft已经意识到了这个问题, 在即将推出的.Net 2.0中,他们为dataset提供了真正的binary序列化方式....
阅读全文
智能替换DataTable.Select中会导致错误的单引号
摘要:看到§猪阿不猪§提到一个DataTable.Select的注意事项: 注意去掉不正确的单引号.平时项目中,我们一般是直接在写filter语句时这样写theName = theName.Replace("'","''");string filter = string.Format("Name = '{0}'", theName);不过有时候也比较麻烦, 如果你的filter里面c...
阅读全文
Nullable Type is an immutable type
摘要:Consider this following code in C# 2.0 int? i = 1; i++; Console.WriteLine(i); int? j = i; j = null; Console.WriteLine(j.HasValue);in...
阅读全文
Why does Dataset NOT serialize its BinaryFormat property? (ADO.net 2.0)
摘要:I have tested the dataset new "binary serialize" feature in ADO.Net 2.0. Many articals said if we set the dataset's property "RemotingFormat" as "SerializationFormat.Binary", it can serialize i...
阅读全文
Undocumented Keywords in C#
摘要:研究Int32&的时候,无意中发现C#里面还有4个Undocument Keyword, 分别是__makeref, __reftype, __refvalue 以及__arglist。 其中前三个keyword可以这样用: int i = 1; TypedReference tr = __makeref(i); Type t = __...
阅读全文
System.Int32&是个啥?
摘要:在.Net中存在不从Object继承的类吗?
阅读全文
在Vs.net中集成 NDoc生成的 Html Help 2帮助文档
摘要:注:NDoc是一个Open Source的For .Net 文档自动生成软件。它可以通过 .Net中XML的注释标签来生成非常漂亮的MSDN风格的类库文档。(相对于VS.Net自己带的Comment Web Page生成工具好多了) 《在Vs.net中集成 NDoc生成的 Html Help 2帮助文档》 By: Fons Sonnemans 编译:linkcd 代码下载...
阅读全文