只是好奇,有什么区别:
int A = 100;
和
int A = new int();
我知道new用于在堆上分配内存..但我真的没有在这里得到上下文.
c# new-operator
c# ×1
new-operator ×1