示例#1
0
        protected override void Deserialize(StringReader reader)
        {
            base.Deserialize(reader);

            Left  = PExpressionUtility.DeserializeNode(reader);
            Right = PExpressionUtility.DeserializeNode(reader);
        }
示例#2
0
        protected override void Serialize(StringWriter writer)
        {
            base.Serialize(writer);

            PExpressionUtility.SerializeNode(Left, writer);
            PExpressionUtility.SerializeNode(Right, writer);
        }
示例#3
0
        protected virtual void Deserialize(StringReader reader)
        {
            Children = new IExpressionNode[int.Parse(reader.ReadLine())];

            for (int i = 0; i < Children.Length; i++)
            {
                Children[i] = PExpressionUtility.DeserializeNode(reader);
            }
        }
示例#4
0
        protected virtual void Serialize(StringWriter writer)
        {
            Children = Children ?? new IExpressionNode[0];
            writer.WriteLine(Children.Length);

            for (int i = 0; i < Children.Length; i++)
            {
                PExpressionUtility.SerializeNode(Children[i], writer);
            }
        }
示例#5
0
        protected override void Deserialize(StringReader reader)
        {
            base.Deserialize(reader);

            Value = PExpressionUtility.DeserializeValue(reader);
        }
示例#6
0
        protected override void Serialize(StringWriter writer)
        {
            base.Serialize(writer);

            PExpressionUtility.SerializeValue(Value, writer);
        }