public override void ReadSlnData (DataItem item) { // Remove the default configuration, since new ones will be loaded CompiledAssemblyProject project = (CompiledAssemblyProject) EntityItem; project.Configurations.Clear (); DataSerializer ser = new DataSerializer (MSBuildProjectService.DataContext); ser.SerializationContext.BaseFile = EntityItem.FileName; ser.SerializationContext.DirectorySeparatorChar = '\\'; ser.Deserialize (project, item); }
public object Deserialize (XmlReader reader, Type type) { DataNode data = XmlConfigurationReader.DefaultReader.Read (reader); return serializer.Deserialize (type, data); }
public object Deserialize(BinaryReader reader, Type type) { DataNode data = BinaryConfigurationReader.DefaultReader.Read(reader); return(serializer.Deserialize(type, data)); }
public static void ReadObjectProperties (this SlnSection pset, object ob) { DataSerializer ser = new DataSerializer (solutionDataContext); ser.SerializationContext.BaseFile = pset.ParentFile.FileName; var data = ReadDataItem (pset); ser.Deserialize (ob, data); }