Loading files
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml.Serialization;
namespace IDE.Core.Presentation.Tests
{
public static class Helpers
{
public static T GetObjectFromXmlString<T>(string xmlString)
{
using (StringReader sr = new StringReader(xmlString))
{
XmlSerializer ser = new XmlSerializer(typeof(T));
var o = ser.Deserialize(sr);
return (T)o;
}
}
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.