Ejemplo n.º 1
0
        /// <inheritdoc />
        protected override void DoSerialize(BuildXLWriter writer)
        {
            writer.Write(Path);
            writer.WriteCompact(Length);

            // Evaluated array
            writer.Write(true);

            // This should be an array of constant expressions.
            for (int i = 0; i < Length; i++)
            {
                ConstExpressionSerializer.WriteConstValue(writer, m_data[i].Value);
            }
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        protected override void DoSerialize(BuildXLWriter writer)
        {
            writer.Write(Path);
            writer.WriteCompact(Count);
            foreach (var member in Members)
            {
                writer.Write(member.Key);

                var node = member.Value.Value as Node;

                bool isNode = node != null;
                writer.Write(isNode);

                if (node != null)
                {
                    node.Serialize(writer);
                }
                else
                {
                    ConstExpressionSerializer.WriteConstValue(writer, member.Value.Value);
                }
            }
        }