| 本帖最后由 ★心秒★ 于 2012-4-18 10:42 编辑 
 兄弟们,帮个忙
 cmd.Parameters.Add(new SqlParameter("a", accesee));
 这个怎么解释,Parameters是个属性,属性怎么可以点儿出一个方法呢???
 希望可以说的具体点儿! 我看到了一篇文章如下:
 ///   <summary>
 ///   带this索引类
 ///   </summary>
 public        class        TestThis
 {
 private        ArrayList        al=null;
 public        TestThis(){}
 public           string        this[int        index]
 {
 get{
 if((al.Count> index)&&al!=null)
 return        al[index]   as   string;
 else
 return        string.Empty;
 }
 set{}
 }
 public        void        Add(string        name)
 {
 if(al==null)
 al=new   ArrayList();
 al.Add(name);
 }
 }
 ///   <summary>
 ///   此类带一个实例化的TestThis
 ///   </summary>
 public        class        Test
 {
 private        TestThis        testThis;
 public        Test()
 {
 testThis=new   TestThis();
 }
 public        TestThis        TestThis
 {
 get        {return        testThis;}
 }
 }
 ///   <summary>
 ///   继承类调用例子(这个就是你所说的属性后加方法)
 ///   </summary>
 public        class        Test1:Test
 {
 public        Test1()
 {
 this.TestThis.Add( "aaa ");
 string        str1         =this.TestThis[0];
 
 }
 }
 
 
 
 
 
 可是这个例子我还是不是很明白诶!  其中,al.count 是什么东东????  可不可以详细些讲啊???
 |