今天一看 Microsoft Enterprise Library - Application Blocks for .NET发现自己编程在思想上就有问题..... 好象还是 C 思想(面向过程),
别以为 object_listening -> do_event 简单啊, 这里忽略性能的饶来饶去(套来套去).
难怪有时直接调用API速度要快很多(.net framework 也是调用 API)C++ 咱也学过, Java 咱也做过(非架构设计), 数据库咱也设计过,咋突然 C# 里没思想了呢, 要不就是思想错了呢.最后引用 G·E·摩尔 的话:
the attempt to answer questions, without first discovering precisely what question it is which you desire to answer.
别以为 object_listening -> do_event 简单啊, 这里忽略性能的饶来饶去(套来套去).
难怪有时直接调用API速度要快很多(.net framework 也是调用 API)C++ 咱也学过, Java 咱也做过(非架构设计), 数据库咱也设计过,咋突然 C# 里没思想了呢, 要不就是思想错了呢.最后引用 G·E·摩尔 的话:
the attempt to answer questions, without first discovering precisely what question it is which you desire to answer.
我的一篇文章
http://jigee.cnblogs.com/archive/2006/04/22/382402.html
等等。要看NET的优秀的源代码,有Castle啊等等。
你怎么想就怎么写,能实现要做的功能就行了