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/Auxiliary
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/ReflectionTools.cs

    r3743 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2623using System.Reflection;
    2724
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/StringExtensions.cs

    r3937 r4068  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
    5 using System.Text.RegularExpressions;
     1using System.Collections.Generic;
    62
    73namespace HeuristicLab.Persistence.Auxiliary {
     
    2420            yield return s.Substring(startIdx, i - startIdx);
    2521          }
    26           startIdx = i+1;
     22          startIdx = i + 1;
    2723        }
    2824      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeExtensions.cs

    r3743 r4068  
    2121
    2222using System;
    23 using System.Text;
    2423
    2524namespace HeuristicLab.Persistence.Auxiliary {
  • 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}:",
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs

    r3935 r4068  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using System.Text;
    25 using System.Text.RegularExpressions;
    26 using System.Reflection.Emit;
    27 using System.Collections.Generic;
    2826using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2927
     
    135133    /// A <see cref="System.String"/> that represents this instance.
    136134    /// </returns>
    137     public string ToString(bool full, bool includeAssembly) {     
     135    public string ToString(bool full, bool includeAssembly) {
    138136      StringBuilder sb = new StringBuilder();
    139137      if (!string.IsNullOrEmpty(Namespace))
     
    236234        }
    237235        return false;
    238       } catch (KeyNotFoundException) {
     236      }
     237      catch (KeyNotFoundException) {
    239238        throw new Exception("Could not extract version information from type string");
    240239      }
     
    269268        }
    270269        return true;
    271       } catch (KeyNotFoundException) {
     270      }
     271      catch (KeyNotFoundException) {
    272272        throw new Exception("Could not extract version infomration from type string");
    273273      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeNameParser.cs

    r3743 r4068  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Text;
    2425using System.Text.RegularExpressions;
    25 using System.Reflection.Emit;
    26 using System.Collections.Generic;
    2726
    2827namespace HeuristicLab.Persistence.Auxiliary {
     
    121120        }
    122121      }
    123       public static IEnumerable<Token> Tokenize(string s) {       
     122      public static IEnumerable<Token> Tokenize(string s) {
    124123        int pos = 0;
    125124        foreach (Match m in TokenRegex.Matches(s)) {
     
    163162      try {
    164163        return p.TransformTypeSpec();
    165       } catch (ParseError x) {
     164      }
     165      catch (ParseError x) {
    166166        if (p.Position > 0)
    167167          throw new ParseError(String.Format(
Note: See TracChangeset for help on using the changeset viewer.