コード例 #1
0
ファイル: Folder.cs プロジェクト: khaiteam/FolderTree
        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);
            }
        }
コード例 #2
0
        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));
        }