请问个WCF通信下的有关问题(传输List<Object>)
请教个WCF通信上的问题(传输ListObject)服务端有个一个C# code public ObservableCollectionobject Ge
请教个WCF通信上的问题(传输List<Object>)
服务端有个一个
C# code public ObservableCollection<object> GetRfidData(string tabledescribe, ref List<string> colnames, ref List<string> coltypes, ref string[] columnsdescribe)
这样的方法
客户端调用的时候当返回的ObservableCollection<object>集合为0时没有问题
不为0就算是为1时也报 "远程服务器返回了错误: NotFound"
ref List<string> colnames, ref List<string> coltypes, ref string[] columnsdescribe
这几个参数如果任一个把string 改成object也会报以上的错误
难道不能传object?????
[解决办法]object不行吧,得传 [DataContract] 修饰的对象。