Fork me on GitHub
摘要: 在学习MSDN的过程中加入一点自己的理解:先学习类实例使用this 以下是 this 的常用用途:限定被相似的名称隐藏的成员,例如:public Employee(string name, string alias) { this.name = name;//此处的this.name即代表字段name,而非参数name this.alias = alias;}声明索引器,例如:public int this [int param]{ get { return array[param]; } set { array[param] = value; }}/*这个之后单独开一页学习下索引器,索引器可 阅读全文
posted @ 2011-10-20 14:51 Halower 阅读(223) 评论(0) 推荐(0) 编辑