摘要:
1.什么是WebClient? 源自MSDN:提供用于将数据发送到由 URI 标识的资源及从这样的资源接收数据的常用方法。2.OpenRead() 为从具有String指定的URI的资源下载的数据打开一个可读的流。 需要先引用System.Net和System.IO. public ... 阅读全文
摘要:
1.对象初始化器 在调用构造函数时直接初始化对象。public class Student{ public string Name; public int Age; public bool Gender;}Student stu=new Student{Name="zhangsan... 阅读全文