Use the following problems to test your skills at working with advanced C# language features. Give each problem a try before you turn to the solutions and download the example programs.
Repeat Problem 30. Directory size. This time, add a SizeLINQ
extension method to the DirectoryInfo
class that uses LINQ to calculate the size of the files inside the directory.
Repeat Problem 39. Directory size, LINQ style, but this time use PLINQ to add file lengths in parallel. Make the test program perform the same operations using a foreach
loop, LINQ, and PLINQ, and display the elapsed time for each. Let the user enter a number of times to repeat each operation so that you can get some meaningful times.