什么意思:在 MainWindow.xaml 中,将 Contoso.Data 命名空间引入作用域?并将 System.Windows.Forms 命名空间引入范围,别名为 WinForms??这个怎么做?
最佳答案
要将命名空间引入作用域,请使用 using
像这样的关键字..using System.Text;
要创建命名空间的别名..using WinForms = System.Windows.Forms;
您可以在这里了解更多信息:https://msdn.microsoft.com/en-us/library/sf0df423.aspx
关于c# - 如何在 C# 中使用别名命名空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36562649/