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/Core/Configuration.cs

    r1564 r1566  
    1414    private readonly Dictionary<Type, IDecomposer> decomposerCache;
    1515
    16     [Storable]   
     16    [Storable]
    1717    public IFormat Format { get; private set; }
    1818
     
    2424      this.Format = format;
    2525      this.formatters = new Dictionary<Type, IFormatter>();
    26       foreach ( var pair in formatters ) {
    27         if (pair.Value.SerialDataType != format.SerialDataType ) {
     26      foreach (var pair in formatters) {
     27        if (pair.Value.SerialDataType != format.SerialDataType) {
    2828          throw new ArgumentException("All formatters must have the same IFormat.");
    2929        }
     
    3131      }
    3232      this.decomposers = new List<IDecomposer>(decomposers);
    33       decomposerCache = new Dictionary<Type, IDecomposer>();     
     33      decomposerCache = new Dictionary<Type, IDecomposer>();
    3434    }
    3535
     
    4242    }
    4343
    44     public IFormatter GetFormatter(Type type) {     
     44    public IFormatter GetFormatter(Type type) {
    4545      IFormatter formatter;
    4646      formatters.TryGetValue(type, out formatter);
     
    5050    public IDecomposer GetDecomposer(Type type) {
    5151      if (decomposerCache.ContainsKey(type))
    52         return decomposerCache[type];     
     52        return decomposerCache[type];
    5353      foreach (IDecomposer d in decomposers) {
    5454        if (d.CanDecompose(type)) {
     
    5959      decomposerCache.Add(type, null);
    6060      return null;
    61     }   
    62   } 
    63  
     61    }
     62  }
     63
    6464}
Note: See TracChangeset for help on using the changeset viewer.