Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1427 for branches


Ignore:
Timestamp:
03/26/09 12:37:41 (16 years ago)
Author:
epitzer
Message:

Bug fix type names for interfaces don't work with version invariant type names. (#506)

Location:
branches/New Persistence Exploration/Persistence
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/New Persistence Exploration/Persistence/HeuristicLab.Persistence.GUI/PersistenceConfigurationForm.cs

    r1425 r1427  
    249249
    250250    private void decomposerList_DragEnter(object sender, DragEventArgs e) {     
    251       if ( e.Data.GetDataPresent(typeof(ListView.SelectedListViewItemCollection).VersionInvariantName())) {
     251      if ( e.Data.GetDataPresent(typeof(ListView.SelectedListViewItemCollection).FullName)) {
    252252        e.Effect = DragDropEffects.Move;
    253253      }
  • branches/New Persistence Exploration/Persistence/Persistence/Core/Configuration.cs

    r1418 r1427  
    4848
    4949    public IDecomposer GetDecomposer(Type type) {
    50       IDecomposer decomposer;
    51       decomposerCache.TryGetValue(type, out decomposer);
    52       if (decomposer != null)
    53         return decomposer;
     50      if (decomposerCache.ContainsKey(type))
     51        return decomposerCache[type];     
    5452      foreach (IDecomposer d in decomposers) {
    5553        if (d.CanDecompose(type)) {
     
    5856        }
    5957      }
     58      decomposerCache.Add(type, null);
    6059      return null;
    6160    }   
Note: See TracChangeset for help on using the changeset viewer.