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