Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/29/09 15:30:23 (16 years ago)
Author:
epitzer
Message:

Create folder with auxiliary classes. (#606)

Location:
trunk/sources/HeuristicLab.Persistence/3.3/Default
Files:
7 edited

Legend:

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

    r1625 r1703  
    5454    }
    5555
    56     public object CreateInstance(Type t, IEnumerable<Tag> metaInfo) {     
     56    public object CreateInstance(Type t, IEnumerable<Tag> metaInfo) {
    5757      try {
    5858        IEnumerator<Tag> e = metaInfo.GetEnumerator();
     
    7474      } catch (InvalidCastException x) {
    7575        throw new PersistenceException("Invalid format of array metainfo.", x);
    76       }     
     76      }
    7777    }
    7878
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/CompactNumberArray2StringDecomposer.cs

    r1644 r1703  
    6363      try {
    6464        var tagIter = metaInfo.GetEnumerator();
    65         tagIter.MoveNext();     
     65        tagIter.MoveNext();
    6666        var valueIter = ((string)tagIter.Current.Value)
    6767          .Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries)
     
    101101      } catch (InvalidCastException e) {
    102102        throw new PersistenceException("Invalid element data during compact array deserialization", e);
    103       }     
     103      }
    104104    }
    105105
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/KeyValuePairDecomposer.cs

    r1625 r1703  
    3131      Tag key, value;
    3232      try {
    33         key = new Tag("key", t.GetProperty("Key").GetValue(o, null));       
     33        key = new Tag("key", t.GetProperty("Key").GetValue(o, null));
    3434      } catch (Exception e) {
    3535        throw new PersistenceException("Exception caught during KeyValuePair decomposition", e);
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/Number2StringConverter.cs

    r1644 r1703  
    22using HeuristicLab.Persistence.Interfaces;
    33using HeuristicLab.Persistence.Core;
     4using HeuristicLab.Persistence.Auxiliary;
    45using System.Collections.Generic;
    56using System.Reflection;
     
    5354
    5455    public object Parse(string stringValue, Type type) {
    55       try {       
     56      try {
    5657        return numberParsers[type]
    5758          .Invoke(null,
     
    6263      } catch (OverflowException e) {
    6364        throw new PersistenceException("Overflow during number parsing.", e);
    64       } 
     65      }
    6566    }
    6667
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/StackDecomposer.cs

    r1683 r1703  
    1818
    1919
    20     public bool CanDecompose(Type type) {     
     20    public bool CanDecompose(Type type) {
    2121      return type == typeof(Stack) ||
    2222        type.IsGenericType &&
     
    4343    }
    4444
    45     public void Populate(object instance, IEnumerable<Tag> tags, Type type) {           
     45    public void Populate(object instance, IEnumerable<Tag> tags, Type type) {
    4646      MethodInfo addMethod = type.GetMethod("Push");
    4747      try {
    4848        foreach (var tag in tags)
    49           addMethod.Invoke(instance, new[] { tag.Value });       
     49          addMethod.Invoke(instance, new[] { tag.Value });
    5050      } catch (Exception e) {
    5151        throw new PersistenceException("Exception caught while trying to populate enumerable.", e);
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/TypeDecomposer.cs

    r1625 r1703  
    11using System;
    22using HeuristicLab.Persistence.Core;
     3using HeuristicLab.Persistence.Auxiliary;
    34using HeuristicLab.Persistence.Interfaces;
    45using System.Collections.Generic;
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs

    r1625 r1703  
    6262      inner.Read();
    6363      string xml = inner.ReadInnerXml();
    64       inner.Close();     
     64      inner.Close();
    6565      yield return new PrimitiveToken(name, typeId, id, new XmlString(xml));
    6666    }
Note: See TracChangeset for help on using the changeset viewer.