/// <summary> /// Basic deserialization of an XML string to an object of the given type /// </summary> /// <typeparam name="T"></typeparam> /// <param name="this"></param> /// <returns></returns> public static T FromXml <T>(this string @this) where T : class => Disposable .Using( () => new StringReader(@this), reader => new XmlSerializer(typeof(T)).Deserialize(reader) as T );