c# - 在 C# 中,为什么在声明 int 时不使用“new”关键字?
admin2025-08-27 11:58:56【世界杯比赛回放视频】
int A = new Int();
It declares and initializes A to 0.
Basically, the new operator here is used to invoke the default constructor for value types. For the type int, the default value is 0.
It has the same effect as the following:
int A = 0;