这是什么C#"采用"指示? [英] What's This C# "using" directive?
本文介绍了这是什么C#"采用"指示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到一个代码示例using语句此C#:
I saw this C# using statement in a code example:
using StringFormat=System.Drawing.StringFormat;
那是什么一回事呢?
What's that all about?
推荐答案
这是混淆类型名,以较短的名称。同样的语法也可用于别名命名空间。使用指令见。
That's aliasing a typename to a shorter name. The same syntax can also be used for aliasing namespaces. See using directive.
(更新回应理查德)
这篇关于这是什么C#"采用"指示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文