本文实例讲述了C#简单创建和删除目录的方法。分享给大家供大家参考。具体如下: using System; using System.IO; class DirectoryCreation { public static void Main() { string directoryString = Directory.GetCurrentDirectory() + @\TestDir; Directory.CreateDirectory (directoryString); Console.WriteLine (Created: {0},