public Integrator toIntegrator()
            {
                var tps   = Serializer.deSerialize(System.Convert.FromBase64String(types)) as Type[];
                var toret = new Integrator(tps, blockCount, rowCount);
                var lstm  = new List <List <List <IElement> > >();

                for (int i = 0; i < rows.Length; i++)
                {
                    lstm.Add(rows[i].toRow(tps));
                }
                for (int i = 0; i < rowCount; i++)
                {
                    for (int j = 0; j < blockCount; j++)
                    {
                        for (int k = 0; k < tps.Length; k++)
                        {
                            toret.set_element(j, i, k, lstm[i][j][k]);
                        }
                    }
                }
                return(toret);
            }
        /// <summary>
        /// Loads the integrator.
        /// </summary>
        /// <returns>Integrator</returns>
        /// <remarks></remarks>
        public virtual Integrator load()
        {
            if (object.ReferenceEquals(null, _data))
            {
                throw new NullReferenceException("_data");
            }
            var dst = Serializer.deSerialize(_data) as Tuple <Type[], List <List <List <Byte[]> > > >;

            if (!object.ReferenceEquals(null, dst))
            {
                var rows   = dst.Item2.Count;
                var blocks = 0;
                if (rows < 1)
                {
                    blocks = 0;
                }
                else
                {
                    blocks = dst.Item2[0].Count;
                }
                var blockSize = dst.Item1.Length;
                var toret     = new Integrator(dst.Item1, blocks, rows);
                for (int i = 0; i < blocks; i++)
                {
                    for (int j = 0; j < rows; j++)
                    {
                        for (int k = 0; k < blockSize; k++)
                        {
                            var      ctype   = dst.Item1[k];
                            var      cons    = ctype.GetConstructor(Type.EmptyTypes);
                            IElement element = null;
                            if (!object.ReferenceEquals(null, cons))
                            {
                                element = cons.Invoke(null) as IElement;
                                if (element.CanBeConvertedToFromByteArray)
                                {
                                    element.setElementAsByteArray(dst.Item2[j][i][k]);
                                }
                                else
                                {
                                    element = Serializer.deSerialize(dst.Item2[j][i][k]) as IElement;
                                }
                            }
                            else
                            {
                                element = Serializer.deSerialize(dst.Item2[j][i][k]) as IElement;
                            }
                            if (element.GetType().Equals(typeof(NullElement)))
                            {
                                toret.set_element(i, j, k, null);
                            }
                            else
                            {
                                toret.set_element(i, j, k, element);
                            }
                        }
                    }
                }
                return(toret);
            }
            else
            {
                return(null);
            }
        }