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/KeyValuePairSerializer.cs

    r3742 r4068  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    24 using System.Collections.Generic;
     25using System.Reflection;
    2526using HeuristicLab.Persistence.Core;
     27using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2628using HeuristicLab.Persistence.Interfaces;
    27 using System.Reflection;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2929
    3030namespace HeuristicLab.Persistence.Default.CompositeSerializers {
     
    4242    public bool CanSerialize(Type type) {
    4343      return type.IsGenericType &&
    44              type.GetGenericTypeDefinition() == genericKeyValuePairType;             
     44             type.GetGenericTypeDefinition() == genericKeyValuePairType;
    4545    }
    4646
    4747    public string JustifyRejection(Type type) {
    4848      if (!type.IsGenericType)
    49         return "not even generic";     
     49        return "not even generic";
    5050      return "not generic KeyValuePair<,>";
    5151    }
     
    6060      try {
    6161        key = new Tag("key", t.GetProperty("Key").GetValue(o, null));
    62       } catch (Exception e) {
     62      }
     63      catch (Exception e) {
    6364        throw new PersistenceException("Exception caught during KeyValuePair decomposition", e);
    6465      }
     
    6667      try {
    6768        value = new Tag("value", t.GetProperty("Value").GetValue(o, null));
    68       } catch (Exception e) {
     69      }
     70      catch (Exception e) {
    6971        throw new PersistenceException("Exception caught during KeyValuePair decomposition", e);
    7072      }
     
    8587        t.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
    8688          .Single(fi => fi.Name == "value").SetValue(instance, iter.Current.Value);
    87       } catch (InvalidOperationException e) {
     89      }
     90      catch (InvalidOperationException e) {
    8891        throw new PersistenceException("Not enough components to populate KeyValuePair instance", e);
    89       } catch (Exception e) {
     92      }
     93      catch (Exception e) {
    9094        throw new PersistenceException("Exception caught during KeyValuePair reconstruction", e);
    9195      }
Note: See TracChangeset for help on using the changeset viewer.