Deserialize XML String - CSharp System.Xml

CSharp examples for System.Xml:XML Serialization

Description

Deserialize XML String

Demo Code


using System.IO;//w w  w .j a v  a 2 s . co m
using System.Xml.Serialization;
using System.Collections.Generic;
using System;

public class Main{
        public static T DeserializeString<T>(string value)
    {
      XmlSerializer<T> serializer = new XmlSerializer<T>();
      return serializer.DeserializeString(value);
    }
}

Related Tutorials