FileSystemEntry
class is not present in the .net API.
In your case following statement returns an array of string not the array of FileSystemEntry class
oFiles = oDir.GetFileSystemEntries();
So in your code instead of using
FileSystemEntry[] oFiles;
You should be using
string[] oFiles;