As the title says, the AlphaFS FileSystemInfo.Refresh() is protected. This is different from System.IO.FileSystemInfo.Refresh(), which is a public method (https://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.refresh(v=vs.110).aspx). This can be a problem, because several public methods return arrays or enumerables of type FileSystemInfo.
As an illustrative example, compiling this line using System.IO is possible without problems:
new System.IO.DirectoryInfo(@"some\directory\path").GetFileSystemInfos()[0].Refresh();
However, with AlphaFS this code breaks and does not compile because of the different accessibility of the Refresh method:
new Alphaleonis.Win32.Filesystem.DirectoryInfo(@"some\directory\path").GetFileSystemInfos()[0].Refresh(); // does not compile!
Unless there are severe reasons to keep FileSystemInfo.Refresh() protected and thus diverging from the public API of System.IO.FileSystemInfo, i would suggest to make this method public and simply remove the re-declaration of the Refresh() method in both DirectoryInfo and FileInfo.
As the title says, the AlphaFS FileSystemInfo.Refresh() is protected. This is different from System.IO.FileSystemInfo.Refresh(), which is a public method (https://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.refresh(v=vs.110).aspx). This can be a problem, because several public methods return arrays or enumerables of type FileSystemInfo.
As an illustrative example, compiling this line using System.IO is possible without problems:
new System.IO.DirectoryInfo(@"some\directory\path").GetFileSystemInfos()[0].Refresh();
However, with AlphaFS this code breaks and does not compile because of the different accessibility of the Refresh method:
new Alphaleonis.Win32.Filesystem.DirectoryInfo(@"some\directory\path").GetFileSystemInfos()[0].Refresh(); // does not compile!
Unless there are severe reasons to keep FileSystemInfo.Refresh() protected and thus diverging from the public API of System.IO.FileSystemInfo, i would suggest to make this method public and simply remove the re-declaration of the Refresh() method in both DirectoryInfo and FileInfo.