System.IO.FileSystemInfo.Init C# (CSharp) Méthode

Init() private méthode

private Init ( Interop &findData ) : void
findData Interop
Résultat void
        internal void Init(ref Interop.Kernel32.WIN32_FIND_DATA findData)
        {
            // Copy the information to data
            _data.PopulateFrom(ref findData);
            _dataInitialized = 0;
        }

Usage Example

        internal static unsafe FileSystemInfo Create(string fullPath, ref FileSystemEntry findData)
        {
            FileSystemInfo info = findData.IsDirectory
                ? (FileSystemInfo) new DirectoryInfo(fullPath, fileName: new string(findData.FileName), isNormalized: true)
                : new FileInfo(fullPath, fileName: new string(findData.FileName), isNormalized: true);

            info.Init(findData._info);
            return(info);
        }
All Usage Examples Of System.IO.FileSystemInfo::Init