上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

2010年6月21日

.Net Remoting(基本操作) - Part.2 (转)

摘要: Remoting 构架1.客户端(客户应用程序)客户端的处理包含三个基本的组成部分,代理(Proxy)、格式器(Formatter) 和 通道(Channel)。2.服务端(宿主应用程序)服务端主要由 通道(Channel)、格式器(Formatter)、Stack Builder组成。在服务端,宿主程序保持着为Remoting所打开的端口的监听,一旦通道收到消息,它便将消息发送给Formatte... 阅读全文

posted @ 2010-06-21 19:54 Acor 阅读(566) 评论(0) 推荐(0) 编辑

2010年6月19日

Monitor类示例(转)

摘要: 该类功效和lock类似:System.Objectobj=(System.Object)x;System.Threading.Monitor.Enter(obj);try{DoSomething();}finally{System.Threading.Monitor.Exit(obj);}lock关键字比Monitor简洁,其实lock就是对Monitor的Enter和Exit的一个封装。另外Mo... 阅读全文

posted @ 2010-06-19 15:25 Acor 阅读(490) 评论(1) 推荐(0) 编辑

多线程的一个问题(同步事件和等待句柄)转

摘要: 同步事件和等待句柄用于解决更复杂的同步情况,比如一个一个大的计算步骤包含3个步骤result = first term + second term + third term,如果现在想写个多线程程序,同时计算first term,second term 和third term,等所有3个步骤计算好后再把它们汇总起来,我们就需要使用到同步事件和等待句柄,同步事件分有两个,分别为AutoResetEv... 阅读全文

posted @ 2010-06-19 14:57 Acor 阅读(793) 评论(0) 推荐(0) 编辑

2010年6月2日

C#操作xml小结(转)

摘要: using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingleNode(... 阅读全文

posted @ 2010-06-02 21:40 Acor 阅读(185) 评论(0) 推荐(0) 编辑

2010年5月10日

web 服务(百度百科)

摘要: Web服务目录[隐藏]一.分布式应用程序和浏览器 二.什么是Web Service 三.WEB服务的描述与参考资料:   Web服务(Web Service)是基于XML和HTTPS的一种服务,其通信协议主要基于SOAP,服务的描述通过WSDL,通过UDDI来发现和获得服务的元数据。 [编辑本段]一.分布式应用程序和浏览器  研究一下当前的应用程序开发,你会发现一个绝对的倾向:人们开始偏爱基于浏览... 阅读全文

posted @ 2010-05-10 21:00 Acor 阅读(1440) 评论(0) 推荐(0) 编辑

2010年4月18日

再论Assembly Registration Tool (Regasm.exe)

摘要: Assembly Registration Tool (Regasm.exe)The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Fram... 阅读全文

posted @ 2010-04-18 17:46 Acor 阅读(545) 评论(0) 推荐(0) 编辑

Blittable and Non-Blittable Types

摘要: Updated: February 2010Most data types have a common representation in both managed and unmanaged memory and do not require special handling by the interop marshaler. These types are called blittable t... 阅读全文

posted @ 2010-04-18 15:10 Acor 阅读(1158) 评论(0) 推荐(0) 编辑

再论Importing a Type Library as an Assembly

摘要: COM type definitions usually reside in a type library. In contrast, CLS-compliant compilers produce type metadata in an assembly. The two sources of type information are quite different.Note:When avai... 阅读全文

posted @ 2010-04-18 13:00 Acor 阅读(209) 评论(0) 推荐(0) 编辑

再论Type Library Importer (Tlbimp.exe)

摘要: The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. The output of Tlbimp.exe is a binary file (an... 阅读全文

posted @ 2010-04-18 12:36 Acor 阅读(264) 评论(0) 推荐(0) 编辑

再论Type Library Exporter (Tlbexp.exe)

摘要: The Type Library Exporter generates a type library that describes the types defined in a common language runtime assembly.tlbexp assemblyName [/out:file] [/nologo] [/silent] [/verbose]The Type Library... 阅读全文

posted @ 2010-04-18 12:22 Acor 阅读(346) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

导航