索引器
摘要:
using System;public class IndexTest{ int[] arr = new int[100]; public int this[int index] { get { if (arr.Length == null||arr.Length==0) return 0; if (index < 0 || index > arr.Length) return 0; ... 阅读全文
posted @ 2010-08-07 23:22 椅望 阅读(124) 评论(1) 推荐(0) 编辑