嗨我在C#中使用初始化程序块
new Something { foo = 1, bar = 2 };
但人们说这是不好的做法.
我不认为这是错的,是吗?
c# coding-style initialization
c# ×1
coding-style ×1
initialization ×1