c#: color[] 到 brush[]

c#: color[] to brush[]

如何将颜色[]转换为笔刷[]?我试过:

for (int i = 0; i < cor3_local.length; i++)
{
Brush cor_local = new SolidBrush(cor3_local[i]);
}

但是 cor_local 没有任何价值。

cor3_local 是颜色[5]。

var brushes = cor3_local.Select(c => new SolidBrush(c)).ToArray();