我是一名试图学习C#的PHP网络程序员.
我想知道为什么C#要求我在创建变量时指定数据类型.
Class classInstance = new Class();
为什么我们需要在类实例之前知道数据类型?
c# static-typing
c# ×1
static-typing ×1