public static WindowProfile Load(Stream stream) { XmlReaderSettings settings = new XmlReaderSettings() { CheckCharacters = false, CloseInput = false }; using (XmlReader reader = XmlReader.Create(stream, settings)) return(WindowProfile.LoadInternal(reader)); }
public static WindowProfile Load(string profileXml) { using (StringReader stringReader = new StringReader(profileXml)) { XmlReaderSettings settings = new XmlReaderSettings() { CheckCharacters = false, CloseInput = false }; using (XmlReader reader = XmlReader.Create((TextReader)stringReader, settings)) return(WindowProfile.LoadInternal(reader)); } }