Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Number2StringSerializer.cs

    r3811 r4068  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
     25using HeuristicLab.Persistence.Auxiliary;
     26using HeuristicLab.Persistence.Core;
     27using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Persistence.Default.Xml;
     29using HeuristicLab.Persistence.Default.Xml.Primitive;
    2430using HeuristicLab.Persistence.Interfaces;
    25 using HeuristicLab.Persistence.Core;
    26 using HeuristicLab.Persistence.Auxiliary;
    27 using System.Collections.Generic;
    28 using System.Reflection;
    29 using System.Globalization;
    30 using System.Text;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    32 using HeuristicLab.Persistence.Default.Xml.Primitive;
    33 using HeuristicLab.Persistence.Default.Xml;
    3431
    3532namespace HeuristicLab.Persistence.Default.CompositeSerializers {
     
    6360
    6461    static Number2StringSerializer() {
    65       numberSerializerMap = new Dictionary<Type,IPrimitiveSerializer>();
     62      numberSerializerMap = new Dictionary<Type, IPrimitiveSerializer>();
    6663      foreach (var s in numberSerializers) {
    6764        numberSerializerMap[s.SourceType] = s;
     
    111108      try {
    112109        return numberSerializerMap[type].Parse(new XmlString(stringValue));
    113       } catch (FormatException e) {
     110      }
     111      catch (FormatException e) {
    114112        throw new PersistenceException("Invalid element data during number parsing.", e);
    115       } catch (OverflowException e) {
     113      }
     114      catch (OverflowException e) {
    116115        throw new PersistenceException("Overflow during number parsing.", e);
    117116      }
     
    166165        it.MoveNext();
    167166        return Parse((string)it.Current.Value, type);
    168       } catch (InvalidOperationException e) {
     167      }
     168      catch (InvalidOperationException e) {
    169169        throw new PersistenceException(
    170170          String.Format("Insufficient meta information to reconstruct number of type {0}.",
    171171          type.VersionInvariantName()), e);
    172       } catch (InvalidCastException e) {
     172      }
     173      catch (InvalidCastException e) {
    173174        throw new PersistenceException("Invalid meta information element type", e);
    174175      }
Note: See TracChangeset for help on using the changeset viewer.