Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/09 12:58:14 (15 years ago)
Author:
epitzer
Message:

Format white space. (Ctrl-K, Ctrl-D) (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/DictionaryDecomposer.cs

    r1563 r1566  
    55using System.Collections.Generic;
    66
    7 namespace HeuristicLab.Persistence.Default.Decomposers { 
    8  
     7namespace HeuristicLab.Persistence.Default.Decomposers {
     8
    99  [EmptyStorableClass]
    1010  public class DictionaryDecomposer : IDecomposer {
     
    1616
    1717    public bool CanDecompose(Type type) {
    18       return type.GetInterface(typeof(IDictionary).FullName) != null;       
     18      return type.GetInterface(typeof(IDictionary).FullName) != null;
    1919    }
    2020
     
    2424
    2525    public IEnumerable<Tag> Decompose(object o) {
    26       IDictionary dict = (IDictionary)o;     
    27       foreach ( DictionaryEntry entry in dict) {
     26      IDictionary dict = (IDictionary)o;
     27      foreach (DictionaryEntry entry in dict) {
    2828        yield return new Tag("key", entry.Key);
    2929        yield return new Tag("value", entry.Value);
     
    4343        Tag value = iter.Current;
    4444        dict.Add(key.Value, value.Value);
    45       }     
     45      }
    4646    }
    4747  }
Note: See TracChangeset for help on using the changeset viewer.