为什么要使用“使用”命名空间C# [英] Why be used "USING" Namespace C#

查看:86
本文介绍了为什么要使用“使用”命名空间C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么要使用USING命名空间C#

Why be used "USING" Namespace C#

推荐答案

检查出来:使用命名空间指令 [ ^ ]


命名空间用于提供保留一组名称的方法与另一个分开。在一个名称空间中声明的类名称不会与在另一个名称空间中声明的相同类名称冲突。



using关键字表明程序正在使用给定名称空间中的名称。



尝试 http://www.tutorialspoint.com/csharp /csharp_namespaces.htm [ ^ ]。< br $> b $ b

其他资源 - 理解C#中的使用语句 [ ^ ]是此关键字的另一种用法。
A namespace is designed for providing a way to keep one set of names separate from another. The class names declared in one namespace will not conflict with the same class names declared in another.

The using keyword states that the program is using the names in the given namespace.

Try http://www.tutorialspoint.com/csharp/csharp_namespaces.htm[^].

Additional resources - Understanding the 'using' statement in C#[^] is another use of this keyword.


这篇关于为什么要使用“使用”命名空间C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆