30. Directory size

Add an extension method to the DirectoryInfo class that returns the total size of the directory's files. Give the method an optional parameter indicating whether the method should include subdirectories. Write a program that uses your method to display a directory's size in bytes and file units, as in 24.1 KB.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.111.124