コード例 #1
0
 void DeleteDirectory(MockDirectory parent, Span <string> dirs)
 {
     if (dirs.Length == 0)
     {
         ThrowCommonException();
     }
     if (dirs.Length == 1)
     {
         parent.RemoveDirectory(dirs[0]);
         return;
     }
     DeleteDirectory(GetDirectoryOrThrow(parent, dirs[0]), dirs.Slice(1));
 }