private void GetSubFiles(DirectoryInfo info) { FileInfo[] fileInfos = info.GetFiles(); Files = new FileInfoWrapper[fileInfos.Length]; for (int i = 0; i < fileInfos.Length; i++) { Files[i] = new FileInfoWrapper(fileInfos[i].FullName); } }
public override bool Equals(object obj) { FileInfoWrapper other = (FileInfoWrapper)obj; return(obj != null && string.Equals(Name, other.Name) && CreationTime.Equals(other.CreationTime) && Size == other.Size && Attributes == other.Attributes && string.Equals(FullName, other.FullName)); }