Dom Fux
New member
Hello all,
A question from a newbie regarding c#
Why an array of FileInfo objects does not need a "new" in order to allocate space and I am unable to find any" new FileInfo"out of the small programI am studying???
The line is FileInfo[] files = dir.Getfile(); //dir is from DirectoryInfo type and has been allocated before with a "new" like DirectoryInfo dir = new DirectoryInfo(path);
I know we dont know how many filename we will get ....
I am lost thanks in advance
A question from a newbie regarding c#
Why an array of FileInfo objects does not need a "new" in order to allocate space and I am unable to find any" new FileInfo"out of the small programI am studying???
The line is FileInfo[] files = dir.Getfile(); //dir is from DirectoryInfo type and has been allocated before with a "new" like DirectoryInfo dir = new DirectoryInfo(path);
I know we dont know how many filename we will get ....
I am lost thanks in advance