Subset of Array in C#

后端 未结 8 1240
别跟我提以往
别跟我提以往 2020-12-05 16:49

If I have an array with 12 elements and I want a new array with that drops the first and 12th elements. For example, if my array looks like this:

__ __ __ _         


        
8条回答
  •  一生所求
    2020-12-05 17:35

    Array.Copy() will do that for you, but you still have to create your new array with its correct size.

提交回复
热议问题