In a C# 2008 application, I need to be able to add records to a string array once the string array has been setup from the code listed below.
string[] Files = Directory.GetFiles(strFullpath, "*pdf")
.Select(path => Path.GetFileName(path))
.ToArray();
Thus once the string[] Files hae been setup, can you tell me how to add more records to the Files array of string[] objects?
C# add to array
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 14, 2012, 7:25 AM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Oct 14, 2012, 7:15 AM EDT
List
.Select(path => Path.GetFileName(path))
.ToList();
Files.add("asdasdasd");
.
.
.
now if you want arra
string[] NewArra=Files.ToArray();
Check this is corerct answer if it helped.