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