摘要: 调用webservice时提示对操作的回复消息正文进行反序列化时出错调用webservice时提示对操作的回复消息正文进行反序列化时出错。主要原因webservice返回值的长度超过readerQuotas中的了maxStringContentLength值,造成返回值截断,不完整,反序列化时出错。 <readerQuotas maxDepth="32" maxStringContentLength="81920" maxArrayLength="16384" maxBytesPerRead="4096" m 阅读全文
posted @ 2013-04-18 21:38 赤狐(zcm123) 阅读(303) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication2{class Program{static void Main(string[] args){List a = new List();record temp = new record();temp.str = "hey";a.Add(temp);temp.str = "hello";a.Add(temp);return;}}class record{public string str;}} 为什么运行之后a中的两个都是hello而不是第一个hey第二个hello。另外还有一点,如果把List a 阅读全文
posted @ 2013-04-18 10:17 赤狐(zcm123) 阅读(538) 评论(0) 推荐(0) 编辑