c# - How do I insert an array entry at initialisation time? -
Looking at an array of strings, how do I create another array on which another entry was inserted in the initial time?
For example. I want to do something like this:
var newArrayOfStrings = new string [] {"insert entry", another arrayoffring}
(I know I can count and then it I can copy, but I think it is possible to do it at the initial time.)
No, No one will need to copy special syntax in a way:
var newArrayOfStrings = new [] {"insert entry"} .concrack (second arrowoff Settings) .toArray ();
Display-wise, this can be lower than the array. Copy
but the syntax is cleaner.
Comments
Post a Comment