If you want to do some thing with a directory/folder you use System.IO.Directory but if you want to display a dialog for browsing one you use FolderBrowserDialog?
Why is one named Directory and the other Folder?
If you want to do some thing with a directory/folder you use System.IO.Directory but if you want to display a dialog for browsing one you use FolderBrowserDialog?
Why is one named Directory and the other Folder?
Probably because the team that wrote the System.IO namespace was not the same team that wrote System.Windows.Forms.
Maybe because Folder in this case is rather a term of Windows(not only?) user interface than a definition of file system object.
Maybe one was written by a Mac dude and the other by a PC dude.
Maybe because FolderBrowserDialog is a porting function from win32 platform SDK ShellBrowseForFolder()
In the good ol' days of DOS, back in the 1980's, when DOS 2.0 came along and introduced the concept of putting files in more than one place on your 160K floppy disk or 10MB hard disk, Microsoft called these "directories", or "subdirectories" the original shell command being DIR to list said files.
When the first Windows 1.0 UI came along several years later, said directories were represented by a folder icon in the MS-DOS Executive, which is what the Windows Explorer was originally known as (more or less).
Hence, "folder" is a user-friendly metaphor for the more technical sounding "directory".