1. 導入namespacespa
using a_namespace;
2. 重命名code
using an = a_namespace;
3. 使用方法string
using System; using System.IO; using MyIO = MyProject.IO; namespace MyProject { class Program { static void Main(string[] args) { File.ReadAllText("test.txt"); MyIO.File.HelloWorld(); } } }