public static Color[] FromTSObject(dynamic[] tsArray) { if (tsArray is null) { return(null); } var list = new System.Collections.Generic.List <Color>(); foreach (var tsItem in tsArray) { list.Add(Color_.FromTSObject(tsItem)); } return(list.ToArray()); }