9eFish - 在 Language 里最新发布的文章
1
臭虫

Code Metrics: Measuring LoC in .NET applications

gpeipmangpeipman 发表于 17 天, 10 小时, 42 分钟 之前
Tuesday, March 02, 2010 1:50:38 PM GMT Saturday, February 20, 2010 10:59:30 PM GMT
My previous posting gave quick overview of code metric called Lines of Code (LoC). In this posting I will introduce you how to measure LoC in Visual Studio projects using Visual Studio Code Analysis and NDepend. (more)
类别: Language | 点击: 0 | 评论 | | 源: weblogs.asp.net
标签: .net, code metrics, loc, NDepend, visual studio
1
臭虫

research paper

babyjinbabyjin 发表于 19 天, 16 小时, 52 分钟 之前
Tuesday, March 02, 2010 1:50:38 PM GMT Thursday, February 18, 2010 4:49:38 PM GMT
We are here to ASSIST you with any kind of paper writing services or academic assignments that you have. We will ensure that you get an original essay, research paper or any additional custom writing services that you need. Our writing services are fast and professional and are guaranteed to meet your needs. We guarantee100% original custom written papersAny deadline is possible to complete your orderUnique expertise and original research on the required topicOpportunity to check you... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.research-service.com
1
臭虫

A Tale of Two Principle Violations

KodefuGuruKodefuGuru 发表于 29 天, 9 小时, 8 分钟 之前
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
1
臭虫

WCF技术剖析之三十:一个很有用的WCF调用编程技巧[下篇] - Artech - 博客园

xgluxvxgluxv 发表于 58 天, 6 小时, 51 分钟 之前
Wednesday, January 20, 2010 8:50:21 AM GMT Monday, January 11, 2010 2:50:20 AM GMT
WCF技术剖析之三十:一个很有用的WCF调用编程技巧[下篇] 在《上篇》中,我通过使用Delegate的方式解决了服务调用过程中的异常处理以及对服务代理的关闭。对于《WCF技术剖析(卷1)》的读者,应该会知道在第7章中我通过类似于AOP的方式解决了相似的问题,现在我们来讨论这个解决方案。 通过《服务代理不能得到及时关闭会有什么后果?》的介绍,我们知道了及时关闭服务代理的重要意义,并且给出了正确的编程方式。如果严格按照上面的编程方式,就意味着对于每一个服务调用,都要使用相同的代码进行异常处理和关闭或中断服务代理对象。按照我个人的观点,一个应用程序的每一个角落若充斥着相同的代码片断,这是一种很不好的设计。设计的目的在于实现代码的重用(Reuse),绝非代码的重复(Duplicate)。 所以现在我们的目的是将重复使用的代码进行单独维护,在使用到的地方进行重用。思路是这样:通过一个对象实现对客户端进行服务访问的方法调用的劫持,在该对象的内部实现真正的方法调用、服务代理关闭或中断,以及异常处理。这实际上是一种基于AOP的解决方案,在这里通过自定义真实代理(RealProxy)的方式来实现服务调用的AOP,... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.cnblogs.com
标签: WCF调用编程技巧
1
臭虫

WCF技术剖析之三十:一个很有用的WCF调用编程技巧[上篇] - Artech - 博客园

xgluxvxgluxv 发表于 58 天, 6 小时, 52 分钟 之前
Wednesday, January 20, 2010 8:50:21 AM GMT Monday, January 11, 2010 2:49:40 AM GMT
WCF技术剖析之三十:一个很有用的WCF调用编程技巧[上篇] 在进行基于会话信道的WCF服务调用中,由于受到并发信道数量的限制,我们需要及时的关闭信道;当遇到某些异常,我们需要强行中止(Abort)信道,相关的原理,可以参考我的文章《服务代理不能得到及时关闭会有什么后果?》。在真正的企业级开发中,正如我们一般不会让开发人员手工控制数据库连接的开启和关闭一样,我们一般也不会让开发人员手工去创建、开启、中止和关闭信道,这些工作是框架应该完成的操作。这篇文章,我们就来介绍如果通过一些编程技巧,让开发者能够无视“信道”的存在,像调用一个普通对象一样进行服务调用。一、正常的服务调用方式 如果通过ChannelFactory (more)
类别: Language | 点击: 0 | 评论 | | 源: www.cnblogs.com
标签: WCF调用编程技巧
1
臭虫

浅谈.NET下的多线程和并行计算(十一).NET异步编程模型基础下 - lovecindywang - 博客园

xgluxvxgluxv 发表于 58 天, 6 小时, 53 分钟 之前
Wednesday, January 20, 2010 8:50:21 AM GMT Monday, January 11, 2010 2:48:52 AM GMT
浅谈.NET下的多线程和并行计算(十一).NET异步编程模型基础下 上次我们说了,要进行多线程编程,我们可以使用最原始的方式也是最灵活的方式进行,那就是Thread(ThreadPool)+信号量+锁+Control.Invoke。.NET的异步编程模型给我们提供了一种基于IAsyncResult的编程模式,它尤其适用于处理下面的应用场景: 1) 被阻止,正在等待一个 IAsyncResult 2) 被阻止,正在等待多个 IAsyncResult 对象 3) 轮询 IAsyncResult 上的完成情形 .NET还提供了基于事件的异步编程模式,它能够提供: 1) 后台执行耗时任务(例如下载和数据库操作),但不会中断应用程序 2) 同时执行多个操作,每个操作完成时都会接到通知 下面是一个符合基于事件的异步编程模式的类:public class AsyncExample { public int Method1(string param); public void Method2(double param); public void Method1As... (more)
类别: Language | 点击: 3 | 评论 | | 源: www.cnblogs.com
标签: .NET异步编程模型
1
臭虫

浅谈.NET下的多线程和并行计算(十).NET异步编程模型基础上 - lovecindywang - 博客园

xgluxvxgluxv 发表于 58 天, 6 小时, 53 分钟 之前
Wednesday, January 20, 2010 8:50:21 AM GMT Monday, January 11, 2010 2:48:05 AM GMT
浅谈.NET下的多线程和并行计算(十).NET异步编程模型基础上 谈多线程谈到现在,我们要明确多线程的一个好处是可以进行并行的运算(充分利用多核处理器,对于桌面应用程序来说就更重要一点了,没有WEB服务器,利用多核只能靠自己),还有一个好处就是异步操作,就是我们可以让某个长时间的操作独立运行,不妨碍主线程继续进行一些计算,然后异步的去返回结果(也可以不返回)。前者能提高性能是因为能利用到多核,而后者能提高性能是因为能让CPU不在等待中白白浪费,其实异步从广义上来说也可以理解为某种并行的运算。在之前的这么多例子中,我们大多采用手工方式来新开线程,之前也说过了,在大并发的环境中随便开始和结束线程的代价太大,需要利用线程池,使用线程池的话又觉得少了一些控制。现在让我们来总结一下大概会有哪几种常见的异步编程应用模式: 1) 新开一个A线程执行一个任务,然后主线程执行另一个任务后等待线程返回结果后继续 2) 新开一个A线程执行一个任务,然后主线程不断轮询A线程是否执行完毕,如果没有的话可以选择等待或是再进行一些操作 3) 新开一个A线程执行一个任务,执行完毕之后立即执行一个回调方法去更新一些状态变量,主线... (more)
类别: Language | 点击: 2 | 评论 | | 源: www.cnblogs.com
标签: .NET异步编程模型
1
臭虫

游戏编程资源

johnjianfangjohnjianfang 发表于 125 天, 14 小时, 27 分钟 之前
Wednesday, November 11, 2009 2:02:30 PM GMT Wednesday, November 04, 2009 7:14:33 PM GMT
C/C++, Script Languages, Open Source Game/3D Engines, and books (more)
类别: Language | 点击: 4 | 评论 | | 源: code.google.com
1
臭虫

CodeProject: 使用.net 3.5的DataAnnotations验证ASP.NET输入

adminadmin 发表于 153 天, 6 小时, 24 分钟 之前
Friday, October 16, 2009 2:15:51 AM GMT Thursday, October 08, 2009 3:17:45 AM GMT
Download sample - 18.2 KBIntroduction This is a very basic introduction on using the new functionality released with .NET 3.5.1 SP1 which introduces a new DLL, System.ComponentModel.DataAnnotations. This new DLL allows you to add attributes to your object properties to enforce validation instead of the normal ASP.NET validators.Background The main reason I started looking into the System.ComponentModel.DataAnnotations namespace was so I could clean up my ASPX pages. While the new attributes do not have... (more)
类别: Language | 点击: 7 | 评论 | | 源: www.codeproject.com
标签: DataAnnotations
1
臭虫

.NET - Some Common Operations using LINQ To XML - Part I

carolhaozicarolhaozi 发表于 156 天, 4 小时, 6 分钟 之前
Wednesday, October 14, 2009 1:47:55 AM GMT Monday, October 05, 2009 5:36:00 AM GMT
In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the Part I of the 3-part LINQ to XML series. I assume you are familiar with LINQ. If not, you can start off with LINQ to XML by checking some tutorials at Getting Ready for .NET 3.5 and LINQ – Exploring C# 3.0 – Part I and over here. (more)
类别: Language | 点击: 2 | 评论 | | 源: www.dotnetcurry.com
标签: linq to xml
1
臭虫

.NET - Some Common Operations using LINQ To XML - Part III

carolhaozicarolhaozi 发表于 156 天, 4 小时, 3 分钟 之前
Wednesday, October 14, 2009 1:47:55 AM GMT Monday, October 05, 2009 5:38:19 AM GMT
In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the final part of our 3-part LINQ to XML series. I assume you are familiar with LINQ. If not, you can start off with LINQ to XML by checking some tutorials at Getting Ready for .NET 3.5 and LINQ – Exploring C# 3.0 – Part I and over here for VB.NET. (more)
类别: Language | 点击: 1 | 评论 | | 源: www.dotnetcurry.com
标签: linq to xml
1
臭虫

.NET - Some Common Operations using LINQ To XML - Part II

carolhaozicarolhaozi 发表于 156 天, 4 小时, 5 分钟 之前
Wednesday, October 14, 2009 1:47:55 AM GMT Monday, October 05, 2009 5:36:54 AM GMT
In this article, we will explore some common ‘How Do I’ kind of examples using LINQ to XML. This article is the Part II of the 3-part LINQ to XML series. I hope you have read the previous article Some Common Operations using LINQ To XML - Part I. I assume you are familiar with LINQ. If not, you can start off with LINQ to XML by checking some tutorials at Getting Ready for .NET 3.5 and LINQ – Exploring C# 3.0 – Part I and over here. (more)
类别: Language | 点击: 0 | 评论 | | 源: www.dotnetcurry.com
标签: linq to xml
1
臭虫

Singleton pattern Unleashed in C#

xgluxvxgluxv 发表于 156 天, 7 小时, 29 分钟 之前
Monday, October 12, 2009 4:46:52 AM GMT Monday, October 05, 2009 2:12:24 AM GMT
This article introduces some basic object oriented concepts and explains the various strategies in C# .Net to design Singleton pattern. (more)
类别: Language | 点击: 0 | 评论 | | 源: www.c-sharpcorner.com
标签: C#, Design Parttern, Singleton
1
臭虫

.NET4.0并行计算技术基础(6) - bitfan(数字世界一凡人)的专栏 - CSDN博客

adminadmin 发表于 160 天, 6 小时, 20 分钟 之前
Friday, October 09, 2009 9:36:51 AM GMT Thursday, October 01, 2009 3:21:52 AM GMT
19.3.3 使用Parallel类——让一切并行起来 在TPL中,最容易使用的类是Parallel,此类提供了三个方法“群”用于实现三种常用的并行程序执行结构。 1使用Parallel.Invoke并行执行任务 当我们有一系列相互独立的工作需要并行执行时,最简单的方法是使用TPL的Parallel类的Invoke()方法来并行执行它们。 例如,假设以下三个方法调用语句之间是相互独立的[1],则它们可以并行执行: (more)
类别: Language | 点击: 0 | 评论 | | 源: blog.csdn.net
标签: .NET4.0, 并行计算技术基础
1
臭虫

.NET4.0并行计算技术基础(5) - bitfan(数字世界一凡人)的专栏 - CSDN博客

adminadmin 发表于 160 天, 6 小时, 21 分钟 之前
Friday, October 09, 2009 9:36:51 AM GMT Thursday, October 01, 2009 3:20:34 AM GMT
3 使用任务并行库实现并行处理 上面介绍了基于线程编码实现并行处理的技术要点,可以看到还是比较繁琐的。但通过使用.NET 4.0的并行库,可以简化开发工作。我们略微详细一点地介绍一下示例程序中是如何使用任务并行库实现并行计算的。 其中的一个关键函数是ForRange()函数,先来看看它的声明: (more)
类别: Language | 点击: 0 | 评论 | | 源: blog.csdn.net
标签: .NET4.0, 并行计算技术基础
1
臭虫

.NET4.0并行计算技术基础(4) - bitfan(数字世界一凡人)的专栏 - CSDN博客

adminadmin 发表于 160 天, 6 小时, 22 分钟 之前
Friday, October 09, 2009 9:36:51 AM GMT Thursday, October 01, 2009 3:19:36 AM GMT
19.3 让一切“并行”——任务并行库原理及应用 19.3.1 任务并行库简介 任务并行库(TPL:Task Parallel Library)是.NET 4.0为帮助软件工程师开发并行程序而提供的一组类,位于System.Threading和System.Threading.Tasks这两个命名空间中,驻留在3个.NET核心程序集mscorlib.dll、System.dll和 System.Core.dll里。使用这些类,可以让软件工程师在开发并行程序时,将精力更关注于问题本身,而不是诸如线程的创建、取消和同步等繁琐的技术细节。 使用TPL开发并行程序,考虑的着眼点是“任务(task)”而非“线程”。 一个任务是一个Task类的实例,它代表某个需要计算机执行的数据处理工作,其特殊之处在于: 在TPL中,任务通常代表一个可以被计算机并行执行的工作。 任务可以由任何一个线程执行,特定的任务与特定的线程之间没有绑定关系。在目前的版本中,TPL使用.NET线程池中的线程来执行任务。 负责将任务“分派”到线程的工作则“任务调度器(Task Scheduler)”负责。任务调度器集成于线程池中... (more)
类别: Language | 点击: 2 | 评论 | | 源: blog.csdn.net
标签: .NET4.0, 并行计算技术
1
臭虫

Chris Love's Official ASP.NET Blog : Communication With a Background Thread in ASP.NET

adminadmin 发表于 167 天, 18 小时, 27 分钟 之前
Thursday, October 01, 2009 8:39:22 AM GMT Wednesday, September 23, 2009 3:14:28 PM GMT
Communication With a Background Thread in ASP.NET Over the past couple of years I have written and presented on custom HttpModules. One of my examples is how to spin up a background thread to perform work not related to processing a web request. I thought I would extend the usefulness of this technique by showing how to communicate back and forth with a potential the user. This example has a lot of moving parts. The first part is a custom HttpModule that launches a process in a background thread:publi... (more)
类别: Language | 点击: 1 | 评论 | | 源: professionalaspnet.com
1
臭虫

CodeProject: What's in Your Collection? Part 3 of 3: Custom Collections.

xgluxvxgluxv 发表于 168 天, 18 小时, 16 分钟 之前
Thursday, October 01, 2009 8:39:22 AM GMT Tuesday, September 22, 2009 3:25:16 PM GMT
Introduction This is the last installment in a three part series about using collections in C#. The entire series can be accessed here:Part 1: InterfacesPart 2: Concrete We've covered the interfaces and some concrete instances of collections provided by the .NET Framework. Now you are interested in moving things to the next level. What if the provided collections simply don't meet your business requirements? What are some ways you can use the collections concept to build your own classes to solve busi... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: Custom Collections
1
臭虫

Daniel Cazzulino's Blog : Linq to Mocks is finally born

adminadmin 发表于 174 天, 18 小时, 32 分钟 之前
Thursday, September 24, 2009 3:14:14 PM GMT Wednesday, September 16, 2009 3:09:45 PM GMT
Linq to Mocks is finally born Last time I announced Linq to Mocks, some said Moq didn't actually have anything to do with Linq. Despite the heavy usage of lambda expressions and expression trees, the "q" in Linq is for "query" after all. And they were right, of course, but it was fun anyway, and the name is definitely cool IMO :). But this time around, I'm happy to say that it's finally true. What the next version of Moq (early beta readily available now) allows you to express in a very declarative wa... (more)
类别: Language | 点击: 1 | 评论 | | 源: www.clariusconsulting.net
标签: Linq to Mocks
1
臭虫

CodeProject: How to make hooks on serial ports in C#.

carolhaozicarolhaozi 发表于 173 天, 8 小时, 23 分钟 之前
Thursday, September 24, 2009 3:14:14 PM GMT Friday, September 18, 2009 1:18:03 AM GMT
Download UsingWIN32SerialHooksInCSharpdemo - 30.11 KBDownload UsingWIN32SerialHooksInC_src - 257.4 KBIntroduction This C# console program illustrates how to use serial port hooks in C#, in a sense. This is because there’s really no readily available API which provides hooking the serial port unlike windows messages, keyboard, and mouse, etc, in which you can use SetWindowsHookEx API. Background  So you popped up your favorite inet browser, opened your favorite search engine and type “How do I ma... (more)
类别: Language | 点击: 0 | 评论 | | 源: www.codeproject.com
标签: C#, hook, serial ports
Previous 1 2 3 4 5 6 Next