Answers for "add array inside a new {} object c#"

C#
9

c# add to array

var Freds = new [] { "Fred", "Freddy" };
Freds = Freds.Concat(new [] { "Frederick" }).ToArray();
Posted by: Guest on May-01-2020
0

c# add object to array

Array.Resize(ref objArray, objArray.Length + 1);
objArray[objArray.Length - 1] = new Someobject();
Posted by: Guest on May-17-2020

Code answers related to "add array inside a new {} object c#"

C# Answers by Framework

Browse Popular Code Answers by Language