KodefuGuru
用户名: KodefuGuru
积分: 40
最近访问: 31 天, 14 小时, 3 分钟
注册时间: 8 February, 2010
9eFish
atom rss
1
臭虫

A Tale of Two Principle Violations

KodefuGuruKodefuGuru 发表于 31 天, 14 小时, 4 分钟 之前
Thursday, February 18, 2010 3:13:28 PM GMT Tuesday, February 09, 2010 12:33:56 AM GMT
When I decided to write the With statement in Fluent.NET, I never imagined that I would encounter a common bug and school myself in principles that I happen to present on. But that is what occurred, and I want to share it so others can avoid the same mistakes I made. With is a Fluent version of Add, only it returns the object or interface it is acting upon rather than void. This allows you to chain methods together in a fluid manner. Instead of calling strings.Add(“Hello”); strings.Add(“World”);, you ca... (more)
类别: Language | 点击: 1 | 评论 | | 源: www.kodefuguru.com
标签: C#, Design Principles, Fluent.NET, Functional