protected override void Deserialize(StringReader reader) { base.Deserialize(reader); Left = PExpressionUtility.DeserializeNode(reader); Right = PExpressionUtility.DeserializeNode(reader); }
protected override void Serialize(StringWriter writer) { base.Serialize(writer); PExpressionUtility.SerializeNode(Left, writer); PExpressionUtility.SerializeNode(Right, writer); }
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); } }
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); } }
protected override void Deserialize(StringReader reader) { base.Deserialize(reader); Value = PExpressionUtility.DeserializeValue(reader); }
protected override void Serialize(StringWriter writer) { base.Serialize(writer); PExpressionUtility.SerializeValue(Value, writer); }