什么是类型安全?类型、安全

2023-09-03 00:27:54 作者:猫耳朵♥

我有一个brainbench最近的考试,拿到了高分,但也有一对夫妇的这是对我来说很难的问题。也许是因为英语不是我的母语......其中一个问题是:

I had a brainbench exam recently, got high mark, but there were a couple of questions which were hard for me. Maybe it's because english is not my native language... One of the questions is:

以下哪一项描述类型安全?

Which one of the following describes type-safety?

用于确保引用和值类型的CLR 安全性的编程结构 从内存泄漏是不允许非托管访问的结果,该保护 的CLR特定的功能,提供了类型可能不是自己的AppDomain外部访问的内存保证 创建通过使用强命名键来保护组件和它们的类型的机制 在处理与分配的对象都可以在兼容的方式获取保证的概念 A programming construct used to ensure the security of reference and value types in the CLR The protection from memory leakage as a result of disallowing unmanaged access The CLR-specific feature providing assurances that types may not access memory outside their own AppDomain A mechanism created to protect assemblies and their types by the use of strong-named keys The concept dealing with assurances that allocated objects are always accessed in compatible ways

我觉得这是1或5,但他们听起来不可思议,我反正:(

I think it's 1 or 5, but they sound weird to me anyway :(

你怎么看?

推荐答案

其实我认为这是选择5,因为类型安全无关与安全。

Actually I think it's Choice 5 because type safety has nothing to do with Security.