public static IMainWindow[] FromTSObject(dynamic[] tsArray)
        {
            if (tsArray is null)
            {
                return(null);
            }
            var list = new System.Collections.Generic.List <IMainWindow>();

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

            foreach (var dynItem in dynArray)
            {
                list.Add(IMainWindow_.GetTSObject(dynItem));
            }
            return(list.ToArray());
        }