Changeset 1425
- Timestamp:
- 03/26/09 10:42:56 (16 years ago)
- Location:
- branches/New Persistence Exploration/Persistence
- Files:
-
- 1 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/HeuristicLab.Persistence.GUI.csproj
r1373 r1425 42 42 --> 43 43 <ItemGroup> 44 <ProjectReference Include="..\Persistence\HeuristicLab.Persistence .csproj">44 <ProjectReference Include="..\Persistence\HeuristicLab.Persistence-3.3.csproj"> 45 45 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 46 <Name>HeuristicLab.Persistence </Name>46 <Name>HeuristicLab.Persistence-3.3</Name> 47 47 </ProjectReference> 48 48 </ItemGroup> -
branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/PersistenceConfigurationForm.cs
r1414 r1425 37 37 } else { 38 38 foreach (var pair in formatterTable) { 39 if (pair.Value.GetType(). FullName == formatter.GetType().FullName) {39 if (pair.Value.GetType().VersionInvariantName() == formatter.GetType().VersionInvariantName()) { 40 40 row.Cells["Formatter"].Value = pair.Key; 41 41 row.Cells["Active"].Value = true; … … 52 52 var availableDecomposers = new Dictionary<string, IDecomposer>(); 53 53 foreach (IDecomposer d in ConfigurationService.Instance.Decomposers) { 54 availableDecomposers.Add(d.GetType(). FullName, d);54 availableDecomposers.Add(d.GetType().VersionInvariantName(), d); 55 55 } 56 56 foreach (IDecomposer decomposer in config.Decomposers) { … … 58 58 item.Checked = true; 59 59 item.Tag = decomposer; 60 availableDecomposers.Remove(decomposer.GetType(). FullName);60 availableDecomposers.Remove(decomposer.GetType().VersionInvariantName()); 61 61 } 62 62 foreach (KeyValuePair<string, IDecomposer> pair in availableDecomposers) { … … 211 211 formatterTable.Remove(formatterName); 212 212 reverseFormatterTable.Remove(otherFormatter); 213 formatterTable.Add(otherFormatter.GetType(). FullName, otherFormatter);214 reverseFormatterTable.Add(otherFormatter, otherFormatter.GetType(). FullName);215 formatterName = formatter.GetType(). FullName;213 formatterTable.Add(otherFormatter.GetType().VersionInvariantName(), otherFormatter); 214 reverseFormatterTable.Add(otherFormatter, otherFormatter.GetType().VersionInvariantName()); 215 formatterName = formatter.GetType().VersionInvariantName(); 216 216 } 217 217 formatterTable.Add(formatterName, formatter); … … 226 226 typeNameTable.Remove(typeName); 227 227 reverseTypeNameTable.Remove(otherType); 228 typeNameTable.Add(otherType. FullName, otherType);229 reverseTypeNameTable.Add(otherType, otherType. FullName);230 typeName = formatter.Type. FullName;228 typeNameTable.Add(otherType.VersionInvariantName(), otherType); 229 reverseTypeNameTable.Add(otherType, otherType.VersionInvariantName()); 230 typeName = formatter.Type.VersionInvariantName(); 231 231 typeNameTable.Add(typeName, formatter.Type); 232 232 reverseTypeNameTable.Add(formatter.Type, typeName); … … 249 249 250 250 private void decomposerList_DragEnter(object sender, DragEventArgs e) { 251 if ( e.Data.GetDataPresent(typeof(ListView.SelectedListViewItemCollection). FullName)) {251 if ( e.Data.GetDataPresent(typeof(ListView.SelectedListViewItemCollection).VersionInvariantName())) { 252 252 e.Effect = DragDropEffects.Move; 253 253 } -
branches/New Persistence Exploration/Persistence/Persistence.sln
r1373 r1425 2 2 Microsoft Visual Studio Solution File, Format Version 10.00 3 3 # Visual Studio 2008 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Persistence ", "Persistence\HeuristicLab.Persistence.csproj", "{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}"4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Persistence-3.3", "Persistence\HeuristicLab.Persistence-3.3.csproj", "{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}" 5 5 EndProject 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Persistence.Test", "Test\HeuristicLab.Persistence.Test.csproj", "{E2245078-6F40-449E-A370-01A97A7C5E6A}" -
branches/New Persistence Exploration/Persistence/Persistence/Core/ConfigurationService.cs
r1418 r1425 97 97 Formatters[formatter.Format].Add(formatter); 98 98 } catch (MissingMethodException) { 99 Console.WriteLine("WARNING: Could not instantiate {0}", t. FullName);99 Console.WriteLine("WARNING: Could not instantiate {0}", t.VersionInvariantName()); 100 100 } 101 101 } … … 104 104 Decomposers.Add((IDecomposer) Activator.CreateInstance(t, true)); 105 105 } catch (MissingMethodException) { 106 Console.WriteLine("WARNING: Could not instantiate {0}", t. FullName);106 Console.WriteLine("WARNING: Could not instantiate {0}", t.VersionInvariantName()); 107 107 } 108 108 } -
branches/New Persistence Exploration/Persistence/Persistence/Core/DeSerializer.cs
r1420 r1425 89 89 throw new ApplicationException(String.Format( 90 90 "No suitable method for deserialization of type \"{0}\" found.", 91 type. FullName));91 type.VersionInvariantName())); 92 92 } 93 93 if ( start.Id != null ) … … 111 111 throw new ApplicationException(String.Format( 112 112 "No suitable method for deserialization of type \"{0}\" found.", 113 type. FullName));113 type.VersionInvariantName())); 114 114 } 115 115 } -
branches/New Persistence Exploration/Persistence/Persistence/Core/Serializer.cs
r1420 r1425 38 38 IFormatter f = configuration.GetFormatter(pair.Key); 39 39 if (f != null) { 40 serializer = f.GetType(). AssemblyQualifiedName;40 serializer = f.GetType().VersionInvariantName(); 41 41 } else { 42 42 IDecomposer d = configuration.GetDecomposer(pair.Key); 43 43 if (d != null) 44 serializer = d.GetType(). AssemblyQualifiedName;44 serializer = d.GetType().VersionInvariantName(); 45 45 } 46 result.Add(new TypeMapping(pair.Value, pair.Key. AssemblyQualifiedName, serializer));46 result.Add(new TypeMapping(pair.Value, pair.Key.VersionInvariantName(), serializer)); 47 47 } 48 48 return result; … … 96 96 String.Format( 97 97 "No suitable method for serializing values of type \"{0}\" found.", 98 value.GetType(). FullName));98 value.GetType().VersionInvariantName())); 99 99 } 100 100 -
branches/New Persistence Exploration/Persistence/Persistence/Default/Decomposers/TypeDecomposer.cs
r1421 r1425 10 10 public bool CanDecompose(Type type) { 11 11 return type == typeof (Type) || 12 type. FullName == "System.RuntimeType";12 type.VersionInvariantName() == "System.RuntimeType, mscorlib"; 13 13 } 14 14 15 15 public IEnumerable<Tag> DeCompose(object obj) { 16 16 Type t = (Type) obj; 17 yield return new Tag(" AssemblyQualifiedName", t.AssemblyQualifiedName);17 yield return new Tag("VersionInvariantName", t.VersionInvariantName()); 18 18 } 19 19 -
branches/New Persistence Exploration/Persistence/Test/HeuristicLab.Persistence.Test.csproj
r1357 r1425 41 41 --> 42 42 <ItemGroup> 43 <ProjectReference Include="..\Persistence\HeuristicLab.Persistence .csproj">43 <ProjectReference Include="..\Persistence\HeuristicLab.Persistence-3.3.csproj"> 44 44 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 45 <Name>HeuristicLab.Persistence </Name>45 <Name>HeuristicLab.Persistence-3.3</Name> 46 46 </ProjectReference> 47 47 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.