is it possible to merge DirectoryInfo[] and FileInfo[] array so that i can have only one array which hold all information of files and folders in it.
thanks in advacne :)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 11, 2013, 11:58 PM EST
So, if you create an array of FileSystemInfo, then it will be able to hold objects of either type:
// dia and fia are arrays of DirectoryInfo and FileInfo respectively
Dorababu MekaRank #457 · 5.5K reputationPosted Jan 11, 2013, 8:39 PM EST