标签: c# arrays .net-core coreclr
两种阵列初始化方式的区别是什么?各方面都一样吗?
使用new运算符:
new
string[] arr = new array[3] {"a","b","c"};
并且不要使用new运算符:
string[] arr = {"a","b","c"};