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