2. Working with Folders Flashcards

1
Q

What is the .NET Directory class?

A

A class that exposes static methods for creating, moving, and enumerating through directories and subdirectories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can the .NET Directory class be inherited?

A

No, it cannot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the .NET File class?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the .NET Path class?

A

A class that performs operations on String instances that contain file or directory path information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where do the .NET File, Directory, and Path classes live?

A

In the System.IO namespace.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does an @ prefix do for strings?

A

It converts the string’s characters to Unicode so that we don’t have to escape any characters;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly