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

    r3743 r4068  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    23 using System;
     24using HeuristicLab.Persistence.Auxiliary;
     25using HeuristicLab.Persistence.Core.Tokens;
    2426using HeuristicLab.Persistence.Interfaces;
    25 using HeuristicLab.Persistence.Core.Tokens;
    26 using HeuristicLab.Persistence.Auxiliary;
    27 using HeuristicLab.Tracing;
    28 using System.Reflection;
    2927
    3028namespace HeuristicLab.Persistence.Core {
     
    8280      }
    8381    }
    84    
     82
    8583    private readonly Dictionary<int, object> id2obj;
    8684    private readonly Dictionary<Type, object> serializerMapping;
     
    124122          serializer = Activator.CreateInstance(serializerType, true);
    125123        serializerMapping.Add(type, serializer);
    126       } catch (PersistenceException) {
     124      }
     125      catch (PersistenceException) {
    127126        throw;
    128       } catch (Exception e) {
     127      }
     128      catch (Exception e) {
    129129        throw new PersistenceException(string.Format(
    130130          "Could not add type info for {0} ({1})",
     
    181181      try {
    182182        parentStack.Push(new Midwife(type, (ICompositeSerializer)serializerMapping[type], token.Id));
    183       } catch (Exception e) {
     183      }
     184      catch (Exception e) {
    184185        if (e is InvalidCastException || e is KeyNotFoundException) {
    185186          throw new PersistenceException(String.Format(
     
    210211          id2obj[(int)token.Id] = value;
    211212        SetValue(token.Name, value);
    212       } catch (Exception e) {
     213      }
     214      catch (Exception e) {
    213215        if (e is InvalidCastException || e is KeyNotFoundException) {
    214216          throw new PersistenceException(String.Format(
Note: See TracChangeset for help on using the changeset viewer.