using System.Text; using System.Xml; namespace SignalDescriptionLanguage { public static class Xshd { const string sdlDef = @" { } , ; // /\* \*/ "" "" (h|l|H|L|!|=|b|B|s|S) 0x[0-9a-fA-F]+ [0-9] \$ "; public static string AsString { get { return sdlDef; } } public static Stream AsStream { get { return new MemoryStream(Encoding.UTF8.GetBytes(sdlDef)); } } public static XmlReader AsReader { get { var stream = AsStream; var reader = new XmlTextReader(stream); return reader; } } } }