public override void Write(XElement root) { if (root == null) throw new ArgumentNullException(nameof(root)); var @string = InnerValue.ToString(CultureInfo.InvariantCulture); root.Add(new XElement(m_name, new XAttribute("value", @string))); }
/// <summary> /// Returns this object as a string represented by the inner value. /// </summary> /// <returns></returns> public override string ToString() { if (InnerValue != null) { if (Negated) { return(string.Format("Not {0}", InnerValue)); } return(InnerValue.ToString()); } if (!Negated) { return("END_OF_INPUT"); } return("Anything"); }
public override string ToString() { return(InnerValue.ToString()); }