public static object Deserialize(string xamlString) { if (xamlString == null) { throw new ArgumentNullException("xamlString"); } return(XamlTestDriver.Deserialize(new MemoryStream(Encoding.UTF8.GetBytes(xamlString)))); }
public static object Deserialize(Stream xamlStream) { if (xamlStream == null) { throw new ArgumentNullException("xamlStream"); } using (XmlReader reader = XmlReader.Create(xamlStream)) { return(XamlTestDriver.Deserialize(reader)); } }