随笔分类 - .NET
.NET技术知识
摘要:最近一直在研究怎么超越手工代码绑定实体性能,但是还是没有实现,贴出研究过程中的产物:public class PerformanceTest { int count = 100000; public string GetTestInfo() { StringBuilder content = new StringBuilder(); System.Diagnostics.Stopwatch oTime = new System.Diagnostics.Stopwatch(); o...
阅读全文
摘要:今天想到前两天的通用数据库访问实体类中,想到了赋值和取值的效率,于是今天就写了个小程序测试了额一下测试程序代码:int Count = 1000000; string findName = "Field" + (Count-1).ToString(); DataEntity[] _ArrTestStr = new DataEntity[Count]; Dictionary<string, DataEntity> _DictionaryTest = new Dictionary<string, DataEntity>(); ...
阅读全文
摘要:又于每次开发都要写实体,如果想灵活一点,就必须要使用到反射进行给实体赋值,这样性能就大打折扣了,于是我就设计了一下实体信息储存类,性能还为测试,等我的数据数据访问层设计完成,在来PK性能,看看能提升性能多少。using System;using System.Collections.Generic;using System.Collections;using System.Text;/* * *用途:储存数据库表信息,代替系统原来的实体类 *作者:双柳居士 *时间:2012-08-28 *QQ:275522539 *Email:88788802@qq.com * * */namespace..
阅读全文
摘要:今天研究了下MarshalByRefObject跨程序通讯,由于今天很晚了,先贴出DOME代码。 分别建立2个winform程序,WinClient和WinServer,2个项目中都有CommunicationInfo类(你也可以将CommunicationInfo做成一个类库供2个winform程序引用)。 贴上代码: CommunicationInfo.cs CommunicationInfo .csusing System;using System.Collections.Generic;using System.Linq;using System.Text;public c...
阅读全文

浙公网安备 33010602011771号