类型VS强类型在C#类型、VS

2023-09-04 13:19:19 作者:可以挥霍的时间叫青春№

在C#中,没有任何理由说的强类型的VS刚刚的键入的?当有人说类型化类,我觉得有些类型的对象比其他的。几乎一切,除了对象类型在C#。

In C#, is there any reason to say strongly typed vs just typed? When someone says typed class, I think of some type other than object. Nearly everything except object is typed in C#.

一旦你定义一个不反对的一类,这个类是一类。它不会再从那里输入。

Once you define a class that is not object, that class is a type. It doesn't get anymore typed from there.

顺便说一句,这不是一个关于安全型(有效的存储和访问对象分配兼容性)的问题。

By the way, this isn't a question about type safety (valid memory access and object assignment compatibility).

推荐答案

您的命名不正确。它不是强类型VS刚键入

Your nomenclature is incorrect. it is not strongly typed vs just typed

这是强与弱类型

一旦你在这些方面谈论它,那么就必须作出一个很大的区别。

Once you talk about it in those terms, then there is a big distinction to be made.

您可以阅读所有关于它在德谷歌。

You can read about it all over teh Googles.

的http://en.wikipedia.org/wiki/Strong_and_weak_typing#Definitions_of_.22strong.22_or_.22weak.22

编辑:

有没有这样的事情只是一个类型化的语言。你有动态VS静态和弱VS强类型这是针对两种不同类型的问题。另一个参考文章

There is no such thing as just a Typed language. You have Dynamic vs Static and Weak vs Strong typing which are addressing two different types of issues. Another reference article

What是强类型语言和静态类型语言之间的区别是什么?