问一个关于Remoting的问题

xiaoyue520 2010-05-31 06:26:11
举个例子

我在服务器端定义类,类里面放了一个数组,并给数组赋值
public class class1
{
string[] str = new string[]{"a","b","c"}

public string[] Str
{
set{str = value;}
get{return str;}
}
}


在客户端如何才能获得这个数组的值呢

...全文
115 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
army369168520 2010-05-31
  • 打赏
  • 举报
回复
使用WebService
xiaoyue520 2010-05-31
  • 打赏
  • 举报
回复
客户端有没有办法调用服务器端的静态方法或字段
xiaoyue520 2010-05-31
  • 打赏
  • 举报
回复
winform
GT7466 2010-05-31
  • 打赏
  • 举报
回复

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<client url="tcp://192.168.100.254:9002/RemotingService">
<wellknown type="abc.namespace,dllname" url="tcp://192.168.100.254:9002/RemotingService/Service"/>
</client>

<channels>
<channel ref="tcp" port="0">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧