当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 一个简单的.net remoting客户端例子

ASP.NET
细细品味ASP.NET(一)
细细品味ASP.NET(二)
细细品味ASP.NET(三)
细细品味ASP.NET(四)
细细品味ASP.NET(五)
用asp.net和xml做的新闻更新系统(1)
用asp.net和xml做的新闻更新系统(2)
用asp.net和xml做的新闻更新系统(3)
十天学会ASP.net(1)
十天学会ASP.net(2)
十天学会ASP.net(3)
十天学会ASP.net(4)
十天学会ASP.net(5)
十天学会ASP.net(6)
十天学会ASP.net(7)
十天学会ASP.net(8)
十天学会ASP.net(9)
十天学会ASP.net(10)
ASP.NET创建XML Web服务全接触(1)
ASP.NET创建XML Web服务全接触(2)

ASP.NET 中的 一个简单的.net remoting客户端例子


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 270 ::
收藏到网摘: n/a

public static void Main(){ RemotingConfiguration.Configure("Client.exe.config"); RemotableType type1 = new RemotableType(); type1.StringMethod();}对应的IL为:.method public hidebysig static void Main() cil managed{ .entrypoint // Code Size: 24 byte(s) .maxstack 1 .locals ( [RemotableType]RemotableType type1) L_0000: ldstr "Client.exe.config" L_0005: call void [mscorlib]System.Runtime.Remoting.RemotingConfiguration::Configure(string) L_000a: newobj instance void [RemotableType]RemotableType::.ctor() L_000f: stloc.0 L_0010: ldloc.0 L_0011: callvirt instance string [RemotableType]RemotableType::StringMethod() L_0016: pop L_0017: ret }newobj将会调用ActivationServices.IsCurrentContextOK()callvirt将会调用RealProxy.PrivateInvoke()