您当前的位置: 首页 >  c#

彭世瑜

暂无认证

  • 3浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C#编程-97:索引器在类中的使用

彭世瑜 发布时间:2017-08-05 21:56:32 ,浏览量:3

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ClassIndexTest
  7. {
  8.     class IndexTest
  9.     {
  10.         private int[] myint = new int[10];
  11.  
  12.         public int this[int index]
  13.         {
  14.             get { 
  15.             if(index>=0 && index= 0 && index 
关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.4184s