Net.Bluewalk.DotNetUtils/Extensions/StringExtensions.cs
/// <summary>
/// Convert Xml string to Object.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="value">The value.</param>
/// <returns>T.</returns>
Convert Xml string to Object.
Convert Xml string to Object .
public static T DeserializeXml<T>(this string value)
        {
            var ser = new XmlSerializer(typeof(T));
            using var sr = new StringReader(value);
            return (T) ser.Deserialize(sr);
        }
public static T DeserializeXml < T > ( this string value ) { var ser = new XmlSerializer ( typeof ( T ) ) ; using var sr = new StringReader ( value ) ; return ( T ) ser . Deserialize ( sr ) ; }
Convert Xml string to Object.
Convert Xml string to Object .
None
string
this
value
None
typeparam
None