.net remoting

 //public class TcpClientChannel : IChannelSender, IChannel, ISecurableChannel
                TcpClientChannel tc = new TcpClientChannel();//该类实现了IChannel接口,所以下面可以直接把tc当作IChannel来使用                
                System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(tc,true);

System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)已过时,请使用System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel channel,bool ensureSecurity)
其实应该是请使用:
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel channel,bool ensureS)

***************************************************
C#-->"类库"-->"生成"之后,就会在物理位置生成bin文件夹,其内有“生成”的*.dll文件
原文地址:https://www.cnblogs.com/simhare/p/954399.html