事实上MyClass x = 120;,是否可以创建这样的自定义类?如果是这样,我该怎么做?
MyClass x = 120;
.net c# implicit variable-assignment
.net ×1
c# ×1
implicit ×1
variable-assignment ×1