namespace

[美]/ˈneɪmˌspeɪs/
[英]/ˈneɪmˌspeɪs/

释义

n.用于编程或计算中组织对象或元素以避免冲突的一组名称

短语搭配

namespace conflict

命名空间冲突

define namespace

定义命名空间

using namespace

使用命名空间

namespace declaration

命名空间声明

global namespace

全局命名空间

nested namespaces

嵌套命名空间

namespace resolution

命名空间解析

namespace scope

命名空间作用域

avoid namespaces

避免命名空间

namespace import

命名空间导入

例句

we defined a new namespace to avoid naming conflicts in the project.

我们在项目中定义了一个新的命名空间以避免命名冲突。

the xml namespace declaration specifies the vocabulary being used.

XML 命名空间声明指定所使用的词汇表。

each class belongs to a specific namespace for organization.

每个类都属于特定的命名空间以进行组织。

using namespaces promotes code reusability and modularity.

使用命名空间可以促进代码的可重用性和模块化。

the namespace contains several related classes and functions.

命名空间包含几个相关的类和函数。

we need to import the namespace to access its members.

我们需要导入命名空间才能访问其成员。

the default namespace is often omitted in xml documents.

默认命名空间通常在 XML 文档中省略。

qualify the class name with the namespace to avoid ambiguity.

使用命名空间的类名来避免歧义。

the namespace provides a logical grouping of related code.

命名空间提供了一个相关的代码逻辑分组。

check the namespace documentation for available classes.

查看命名空间文档以了解可用的类。

avoid using the global namespace to prevent collisions.

避免使用全局命名空间以防止冲突。

the namespace prefix maps to a uri identifying the vocabulary.

命名空间前缀映射到标识词汇表的 URI。

下载 App 解锁完整内容

想更高效学习单词?下载DictoGo App,享受更多词汇记忆与复习功能!

立即下载 DictoGo