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)

Location:
trunk/sources/HeuristicLab.Persistence/3.3/Core
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Configuration.cs

    r3743 r4068  
    2121
    2222using System;
    23 using System.Linq;
    2423using System.Collections.Generic;
     24using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2525using HeuristicLab.Persistence.Interfaces;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2726
    2827namespace HeuristicLab.Persistence.Core {
     
    7776            "is not compatible with selected format's ({2}) seriali data type ({3})",
    7877            primitiveSerializers.GetType().FullName, primitiveSerializer.SerialDataType.FullName,
    79             format.Name, format.SerialDataType.FullName));           
     78            format.Name, format.SerialDataType.FullName));
    8079        this.primitiveSerializers.Add(primitiveSerializer.SourceType, primitiveSerializer);
    81       }     
     80      }
    8281    }
    8382
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/ConfigurationService.cs

    r3743 r4068  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.IO;
    2425using System.Linq;
    25 using System.Collections.Generic;
    2626using System.Reflection;
    2727using System.Text;
     
    2929using HeuristicLab.Persistence.Interfaces;
    3030using HeuristicLab.Tracing;
    31 using HeuristicLab.Persistence.Core.Tokens;
    32 using HeuristicLab.Persistence.Auxiliary;
    3331
    3432namespace HeuristicLab.Persistence.Core {
     
    9694      try {
    9795        TryLoadSettings();
    98       } catch (Exception e) {
     96      }
     97      catch (Exception e) {
    9998        if (throwOnError) {
    10099          throw new PersistenceException("Could not load persistence settings.", e);
     
    163162          if (a != defaultAssembly)
    164163            DiscoverFrom(a);
    165       } catch (AppDomainUnloadedException x) {
     164      }
     165      catch (AppDomainUnloadedException x) {
    166166        Logger.Warn("could not get list of assemblies, AppDomain has already been unloaded", x);
    167167      }
     
    207207          }
    208208        }
    209       } catch (ReflectionTypeLoadException e) {
     209      }
     210      catch (ReflectionTypeLoadException e) {
    210211        Logger.Warn("could not analyse assembly: " + a.FullName, e);
    211212      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/DataMemberAccessor.cs

    r3913 r4068  
    2222using System;
    2323using System.Reflection;
    24 using HeuristicLab.Persistence.Core;
    2524using System.Reflection.Emit;
    26 using System.Collections.Generic;
    2725
    2826namespace HeuristicLab.Persistence.Core {
    29  
     27
    3028  /// <summary>
    3129  /// Encapsulation and abstraction for access a data member of an object
  • 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(
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/GeneratorBase.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322using System;
    24 using System.Text;
     23using HeuristicLab.Persistence.Core.Tokens;
    2524using HeuristicLab.Persistence.Interfaces;
    26 using HeuristicLab.Persistence.Core;
    27 using System.IO;
    28 using ICSharpCode.SharpZipLib.Zip;
    29 using HeuristicLab.Tracing;
    30 using HeuristicLab.Persistence.Core.Tokens;
    3125
    3226namespace HeuristicLab.Persistence.Core {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/PersistenceException.cs

    r3743 r4068  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    23 using System;
    24 using HeuristicLab.Persistence.Interfaces;
    25 using HeuristicLab.Persistence.Core.Tokens;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2724using System.Text;
    2825
     
    3229  /// Exception thrown by components inside the persistence framework.
    3330  /// </summary>
    34   [Serializable] 
     31  [Serializable]
    3532  public class PersistenceException : Exception {
    3633
     
    8784    }
    8885  }
    89  
     86
    9087}
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Serializer.cs

    r3913 r4068  
    2020#endregion
    2121
     22using System;
     23using System.Collections;
    2224using System.Collections.Generic;
    23 using System.Collections;
    24 using System;
    25 using System.Linq;
     25using System.Reflection;
     26using System.Text;
    2627using HeuristicLab.Persistence.Auxiliary;
     28using HeuristicLab.Persistence.Core.Tokens;
    2729using HeuristicLab.Persistence.Interfaces;
    28 using HeuristicLab.Persistence.Core.Tokens;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    30 using System.Text;
    31 using System.Reflection;
    32 using System.IO;
    33 using System.Diagnostics;
    3430
    3531namespace HeuristicLab.Persistence.Core {
     
    9490      }
    9591    }
    96    
     92
    9793    /// <summary>
    9894    /// Contains a list of files (mostly assemblies) that are
     
    207203
    208204    private IEnumerator<ISerializationToken> Serialize(DataMemberAccessor accessor, object obj) {
    209      
     205
    210206      object value = accessor.Get(obj);
    211207      if (value == null)
     
    244240            compositeSerializer.CreateMetaInfo(value),
    245241            emitTypeInfo);
    246         throw CreatePersistenceException(type, "Could not determine how to serialize a value.");     
    247       } catch (Exception x) {
     242        throw CreatePersistenceException(type, "Could not determine how to serialize a value.");
     243      }
     244      catch (Exception x) {
    248245        if (isTestRun) {
    249246          exceptions.Add(x);
     
    254251          throw CreatePersistenceException(type, "Uncaught exception during serialization: " + x.Message);
    255252        }
    256       } finally {
     253      }
     254      finally {
    257255        objectGraphTrace.Pop();
    258256      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tag.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322
    2423namespace HeuristicLab.Persistence.Core {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/BeginToken.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    2322
    2423namespace HeuristicLab.Persistence.Core.Tokens {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/EndToken.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    2322
    2423namespace HeuristicLab.Persistence.Core.Tokens {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/NulLReferenceToken.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    2322
    2423namespace HeuristicLab.Persistence.Core.Tokens {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/ReferenceToken.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    2322
    2423namespace HeuristicLab.Persistence.Core.Tokens {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/SerializationTokenBase.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    2322using System.Reflection;
    2423using System.Text;
     24using HeuristicLab.Persistence.Interfaces;
    2525
    2626namespace HeuristicLab.Persistence.Core.Tokens {
  • trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/TypeToken.cs

    r3743 r4068  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2622using HeuristicLab.Persistence.Interfaces;
    2723
Note: See TracChangeset for help on using the changeset viewer.