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