private static IFileInfo[] ConvertFileArray(FileInfo[] fileInfos) { var arr = new IFileInfo[fileInfos.Length]; for (var i = 0; i < fileInfos.Length; i++) { arr[i] = DefaultFileInfo.FromFileInfo(fileInfos[i]); } return(arr); }
public static IFileSystemInfo FromFileSystemInfo(FileSystemInfo fsInfo) { var dirInfo = fsInfo as DirectoryInfo; if (dirInfo != null) { return(DefaultDirectoryInfo.FromDirectoryInfo(dirInfo)); } var fileInfo = fsInfo as FileInfo; if (fileInfo != null) { return(DefaultFileInfo.FromFileInfo(fileInfo)); } return(null); }
private bool Equals(DefaultFileInfo other) { return Equals(_fileInfo, other._fileInfo); }
private bool Equals(DefaultFileInfo other) { return(Equals(_fileInfo, other._fileInfo)); }