Calculate the Size of a Folder/Directory using .NET 4.0(www.devcurry.com)

submitted by johnastuntzjohnastuntz(191) 1 year, 9 months ago

.NET 4.0 introduces new methods to Enumerate Directory and Files in .NET 4.0. We will be using the DirectoryInfo.EnumerateDirectories and DirectoryInfo.EnumerateFiles in this sample which returns an enumerable collection of Directory and File information respectively to calculate the size of a folder or directory using .NET 4.0 and LINQ.

add a comment |category: |Views: 14

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story