Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Directory and DirectoryInfo classes -- Keyboard shortcut: 'p'  Next page: Serialization [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 29 : 40
Object-oriented Programming in C#
Input and Output Classes
Members in class DirectoryInfo

Instance properties and instance methods of class DirectoryInfo

  • A single constructor

    • DirectoryInfo(string)

  • Properties (getters) that access information about the current directory

    • Examples: CreationTime, LastAccessTime, Exists, Name, FullName

  • Directory Navigation operations

    • Up: Parent, Root

    • Down: GetDirectories, GetFiles, GetFileSystemInfo (all overloaded)

  • Classical directory manipulations

    • Create, MoveTo, Delete

  • Others

    • Refresh, ...

The class DirectoryInfo and FileInfo have a common, abstract superclass called FileSystemInfo