EMROOM EMROOM为你带来创造E世界明天的资本 设为首页
加入收藏
站长信箱
首页网络编程ASP代码下载网页设计服 务 器网络安全数 据 库SEO探索业界动态IT数码IT报价网站地图
当前位置:EMROOM--一个简单的.net remoting客户端例子
一个简单的.net remoting客户端例子
〖双击滚屏,单击停止〗〖放大字体〗〖缩小字体
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()

广告位招租,联系QQ:416346708
热点文章
推荐文章
放大字体〗〖缩小字体〗 〖关闭窗口 来源:web,发布于:EMROOM ,已被阅读:
搜索更多相关:
GOOGLE:一个简单的.net remoting客户端例子
BAIDU:一个简单的.net remoting客户端例子
 
文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。
如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
编辑EMAIL:emroom@126.com,谢谢!