Best way to “push” into C# array

后端 未结 12 2632
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 14:25

Good day all

So I know that this is a fairly widely discussed issue, but I can\'t seem to find a definitive answer. I know that you can do what I am asking for using a L

12条回答
  •  暖寄归人
    2021-02-13 14:35

    As per comment "That is not pushing to an array. It is merely assigning to it"

    If you looking for the best practice to assign value to array then its only way that you can assign value.

    Array[index]= value;
    

    there is only way to assign value when you do not want to use List.

提交回复
热议问题