Dependencies/XamlFileSystemExplorer/FSExplorer/FileSystemInfoEx/Tools/IOTools.cs
/// <summary>
/// Return a PIDL List from one or more FileSystemInfoExs
/// </summary>
/// <param name="item"></param>
/// <param name="relative"></param>
/// <returns></returns>
Return a PIDL List from one or more FileSystemInfoExs
Return a PIDL List from one or more FileSystemInfoExs
public static PIDL[] GetPIDL(FileSystemInfoEx[] items, bool relative)
        {
            List<PIDL> retVal = new List<PIDL>();
            foreach (FileSystemInfoEx fi in items)
                if (fi.Exists)
                    fi.RequestPIDL((pidl, relPidl) =>
                        {
                            retVal.Add(relative ? relPidl : pidl);
                        });
            return retVal.ToArray();
        }
public static PIDL [ ] GetPIDL ( FileSystemInfoEx [ ] items , bool relative ) { List < PIDL > retVal = new List < PIDL > ( ) ; foreach ( FileSystemInfoEx fi in items ) if ( fi . Exists ) fi . RequestPIDL ( ( pidl , relPidl ) => { retVal . Add ( relative ? relPidl : pidl ) ; } ) ; return retVal . ToArray ( ) ; }
Return a PIDL List from one or more FileSystemInfoExs
Return a PIDL List from one or more FileSystemInfoExs
None
items
FileSystemInfoEx[]
relative
bool
None
item
None