Example #1
0
        public static object Deserialize(string xamlString)
        {
            if (xamlString == null)
            {
                throw new ArgumentNullException("xamlString");
            }

            return(XamlTestDriver.Deserialize(new MemoryStream(Encoding.UTF8.GetBytes(xamlString))));
        }
Example #2
0
        public static object Deserialize(Stream xamlStream)
        {
            if (xamlStream == null)
            {
                throw new ArgumentNullException("xamlStream");
            }

            using (XmlReader reader = XmlReader.Create(xamlStream))
            {
                return(XamlTestDriver.Deserialize(reader));
            }
        }