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/Auxiliary/TypeLoader.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322using System;
    24 using HeuristicLab.Persistence.Interfaces;
    25 using HeuristicLab.Persistence.Core.Tokens;
    26 using HeuristicLab.Persistence.Auxiliary;
    27 using HeuristicLab.Tracing;
    2823using System.Reflection;
    2924using HeuristicLab.Persistence.Core;
     25using HeuristicLab.Tracing;
    3026
    3127namespace HeuristicLab.Persistence.Auxiliary {
     
    3733      try {
    3834        type = Type.GetType(typeNameString, true);
    39       } catch (Exception) {
     35      }
     36      catch (Exception) {
    4037        Logger.Warn(String.Format(
    4138          "Cannot load type \"{0}\", falling back to partial name", typeNameString));
    4239        try {
    43           TypeName typeName = TypeNameParser.Parse(typeNameString);             
     40          TypeName typeName = TypeNameParser.Parse(typeNameString);
    4441#pragma warning disable 0618
    45           Assembly a = Assembly.LoadWithPartialName(typeName.AssemblyName);         
     42          Assembly a = Assembly.LoadWithPartialName(typeName.AssemblyName);
    4643          // the suggested Assembly.Load() method fails to load assemblies outside the GAC
    4744#pragma warning restore 0618
    4845          type = a.GetType(typeName.ToString(false, false), true);
    49         } catch (Exception) {
     46        }
     47        catch (Exception) {
    5048          throw new PersistenceException(String.Format(
    5149            "Could not load type \"{0}\"",
     
    6563              typeNameString,
    6664              type.AssemblyQualifiedName));
    67         } catch (PersistenceException) {
     65        }
     66        catch (PersistenceException) {
    6867          throw;
    69         } catch (Exception e) {
     68        }
     69        catch (Exception e) {
    7070          Logger.Warn(String.Format(
    7171            "Could not perform version check requested type was {0} while loaded type is {1}:",
Note: See TracChangeset for help on using the changeset viewer.