List GetRange error in C#

前端 未结 3 1251
再見小時候
再見小時候 2021-01-19 04:56

i am working with list and my list has 14 record.

 List oProduct = new List 
        {
           new Product(\"../images/1.jpg         


        
3条回答
  •  一整个雨季
    2021-01-19 05:27

    List.GetRange takes start and count, not start and end. If you want elements 10-13, use GetRange(10, 4).

提交回复
热议问题