我想像这样使用ConvertAll:
var sou = new[,] { { true, false, false }, { true, true, true } }; var tar = Array.ConvertAll<bool, int>(sou, x => (x ? 1 : 0));
但是我遇到了编译错误:
不能隐式转换类型bool [ , ]到bool []
c#
c# ×1