Inheritance: IFileInfo
Exemplo n.º 1
0
        public IFileInfo[] GetFiles()
        {
            FileInfo[]  fis = di.GetFiles();
            IFileInfo[] mfi = new MFileInfo[fis.Length];
            FileInfo    fi  = null;

            for (int i = 0; i < mfi.Length; i++)
            {
                fi     = fis[i];
                mfi[i] = new MFileInfo(fi.FullName, fi.Name, fi.Length);
            }


            return(mfi);
        }
Exemplo n.º 2
0
        public IFileInfo[] GetFiles()
        {
            FileInfo[] fis = di.GetFiles();
            IFileInfo[] mfi = new MFileInfo[fis.Length];
            FileInfo fi = null;

            for (int i = 0; i < mfi.Length; i++)
            {
                fi = fis[i];
                mfi[i] = new MFileInfo(fi.FullName, fi.Name, fi.Length);
            }

            return mfi;
        }