using System.Xml.Linq; // XDocument using System; // String using Packt.Shared; // IsValidHex(), IsValidXmlTag(), IsValidPassword() using DialectSoftware.Collections; using DialectSoftware.Collections.Generics; XDocument doc = new(); string s1 = "Hello"; String s2 = "World"; WriteLine($"{s1} {s2}"); Write("Enter a color value in hex: "); string? hex = ReadLine(); // or "00ffc8" WriteLine("Is {0} a valid color value? {1}", arg0: hex, arg1: hex.IsValidHex()); Write("Enter a XML element: "); string? xmlTag = ReadLine(); // or "
" WriteLine("Is {0} a valid XML element? {1}", arg0: xmlTag, arg1: xmlTag.IsValidXmlTag()); Write("Enter a password: "); string? password = ReadLine(); // or "secretsauce" WriteLine("Is {0} a valid password? {1}", arg0: password, arg1: password.IsValidPassword()); Axis x = new("x", 0, 10, 1); Axis y = new("y", 0, 4, 1); Matrix