2. Working with Folders Flashcards
What is the .NET Directory
class?
A class that exposes static methods for creating, moving, and enumerating through directories and subdirectories.
Can the .NET Directory
class be inherited?
No, it cannot.
What is the .NET File
class?
A class that provides static methods for the creation, copying, deletion, moving, and opening of a single file, and aids in the creation of FileStream objects.
What is the .NET Path
class?
A class that performs operations on String instances that contain file or directory path information.
Where do the .NET File
, Directory
, and Path
classes live?
In the System.IO
namespace.
What does an @
prefix do for strings?
It converts the string’s characters to Unicode so that we don’t have to escape any characters;