【发布时间】:2018-06-06 13:36:37
【问题描述】:
如何在 C# 中初始化多个变量?
class file_list_output
{
public file_list_output(ListView v, const int max) => veiw = v => max_ext_allowed = max;
}
想不通
【问题讨论】:
-
什么是你想不通的?
-
这在 c# 中如何有效 public file_list_output(ListView v) => veiw = v;
-
你所拥有的是无效的,我在下面放置了一个答案,显示了如何使用表达式体构造函数。
标签: c# class initialization