The remote server returned an error: (401) Unauthorized
摘要:{ String url = url; try { HttpWebRequest webRequest = WebRequest.Create(url) as HttpWebRequest; webRequest.PreAuthenticate = tru...
阅读全文
posted @
2018-03-22 14:17
怡星梦
阅读(845)
推荐(0)
foreach循环遍历list出错
摘要:今天在使用foreach循环遍历list集合时,出现Collection was modified; enumeration operation may not execute.这个错误,查了半天才发现是当想要修改list集合时,不能使用foreach,因为foreach是取只读的,在取的时候数据不
阅读全文
posted @
2018-01-08 11:19
怡星梦
阅读(577)
推荐(0)