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);
		}
Example #2
0
		public object Deserialize (XmlReader reader, Type type)
		{
			DataNode data = XmlConfigurationReader.DefaultReader.Read (reader);
			return serializer.Deserialize (type, data);
		}
Example #3
0
        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);
		}