摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace 创建带属性的XML文档 { class Program { static ... 阅读全文
posted @ 2016-10-24 23:28 影落明湖 阅读(354) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace 创建XML { class Program { static void M... 阅读全文
posted @ 2016-10-24 23:27 影落明湖 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 索引器(C# 编程指南) Visual Studio 2015 其他版本 索引器允许类或结构的实例就像数组一样进行索引。 索引器类似于属性,不同之处在于它们的取值函数采用参数。 在下面的示例中,定义了一个泛型类,并为其提供了简单的 get 和 set 取值函数方法(作为分配和检索值的方法)。 Program 类创建了此类的一个实例,用于存储字符串。 C# class SampleColl... 阅读全文
posted @ 2016-10-24 22:29 影落明湖 阅读(275) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tas... 阅读全文
posted @ 2016-10-24 21:25 影落明湖 阅读(302) 评论(0) 推荐(0) 编辑