详情:
cs0116 C# a namespace cannot directly contain members such as fields or methods
报错代码:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MethodTesting
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Input a directory name:");
string newDirectoryName = Console.ReadLine();
Console.WriteLine("Input a file name with suffix:");
string newFileName = Console.ReadLine();
Console.WriteLine("Input a path:")