摘要:
decimal c = 2923674599.000M; long a = Convert.ToInt64(c); long b; if (long.TryParse(c.ToString(), out b)) { } 猜猜 a=? & b=? 阅读全文
posted @ 2009-07-16 14:22 rongwei 阅读(352) 评论(0) 推荐(0)
|
|||
|
摘要:
decimal c = 2923674599.000M; long a = Convert.ToInt64(c); long b; if (long.TryParse(c.ToString(), out b)) { } 猜猜 a=? & b=? 阅读全文
posted @ 2009-07-16 14:22 rongwei 阅读(352) 评论(0) 推荐(0)
摘要:
关键词:抽象工厂适合读者:中级摘要:通过对抽象工厂的改造使变得简单和更具有扩展性。内容:首先我来分析一下抽象工厂模式:我们为什么要这么设计呢?是因为我们有这样的要求:老板:我要做一种产品。程序员:我们没有考虑,直接做了一个产品类(ProductA1)和 产品线ProductFactory1。老板:我还要再做另一种产品。程序员:我们没有考虑,又做了一个产品类(ProductA2)。老板:我还要再做另... 阅读全文
posted @ 2007-02-22 07:12 rongwei 阅读(6955) 评论(18) 推荐(0) |
|||