0
kicks
DirectoryInfo.CopyTo Custom Extension in C# 3.0
DirectoryInfo doesn’t have a method for recursive copying of files and subfoders from one root to another. The following code ads the CopyTo method to the DirectoryInfo class using the new C# 3.0 feature named code extensions.