コード例 #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);
        }