Differences

This shows you the differences between the selected revisions of the page.

2021-03-25 2021-03-25
preventing highlighting of the "Exit" method (martin) note about implicit implementation in 5.18.4 (martin)
Line 157: Line 157:
            $session.EnumerateRemoteFiles(             $session.EnumerateRemoteFiles(
                $remotePath, $Null, [WinSCP.EnumerationOptions]::AllDirectories)                 $remotePath, $Null, [WinSCP.EnumerationOptions]::AllDirectories)
-        # An explicit implementation of IEnumerable cannot be accessed directly in PowerShell+        # An explicit implementation of IEnumerable cannot be accessed directly in PowerShell
 +        # WinSCP 5.18.4 has an implicit implementation, so direct $files.GetEnumerator() works.
        $filesEnumerator =         $filesEnumerator =
            [System.Collections.IEnumerable].GetMethod("GetEnumerator").Invoke($files, $Null)             [System.Collections.IEnumerable].GetMethod("GetEnumerator").Invoke($files, $Null)

Last modified: by martin