public static WTVStreamingVideoCommand FromXML(string theXML) { WTVStreamingVideoCommand newRR = new WTVStreamingVideoCommand(); XmlSerializer serializer = new XmlSerializer(newRR.GetType()); StringReader sr = new StringReader(theXML); try { return (WTVStreamingVideoCommand)serializer.Deserialize(sr); } catch { return newRR; } }
public static WTVStreamingVideoCommand FromXML(string theXML) { WTVStreamingVideoCommand newRR = new WTVStreamingVideoCommand(); XmlSerializer serializer = new XmlSerializer(newRR.GetType()); StringReader sr = new StringReader(theXML); try { return((WTVStreamingVideoCommand)serializer.Deserialize(sr)); } catch { return(newRR); } }