Example #1
0
        /// <summary>
        /// Write to a file
        /// </summary>
        /// <param name="writer"></param>
        /// <returns></returns>
        public override bool Write(GH_IO.Serialization.GH_IWriter writer)
        {
            if (Value != null)
            {
                Value.historicData.Write(writer.CreateChunk("historicData"));
                Value.genoGuids.Write(writer.CreateChunk("genoData"));
                writer.SetInt32("popCount", Value.PopCount);
            }

            return(true);
        }