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/Default/Xml/Compact
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/ByteArray2XmlSerializer.cs

    r3742 r4068  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2622
    2723namespace HeuristicLab.Persistence.Default.Xml.Compact {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/CompactXmlSerializerBase.cs

    r3742 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Persistence.Interfaces;
    23 using HeuristicLab.Persistence.Core;
    24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2522
    2623namespace HeuristicLab.Persistence.Default.Xml.Compact {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleArray2XmlSerializer.cs

    r3742 r4068  
    2020#endregion
    2121
    22 using System;
    23 using HeuristicLab.Persistence.Core;
    2422using HeuristicLab.Persistence.Default.Xml.Primitive;
    2523
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/DoubleList2XmlSerializer.cs

    r3937 r4068  
    2020#endregion
    2121
    22 using System.Collections;
     22using System;
    2323using System.Collections.Generic;
    24 using System;
    25 using System.Linq;
     24using System.Text;
     25using HeuristicLab.Persistence.Auxiliary;
    2626using HeuristicLab.Persistence.Core;
    2727using HeuristicLab.Persistence.Default.Xml.Primitive;
    28 using System.Text;
    29 using HeuristicLab.Persistence.Auxiliary;
    3028
    3129namespace HeuristicLab.Persistence.Default.Xml.Compact {
     
    4846        }
    4947        return list;
    50       } catch (InvalidCastException e) {
     48      }
     49      catch (InvalidCastException e) {
    5150        throw new PersistenceException("Invalid element data during reconstruction of List<double>.", e);
    52       } catch (OverflowException e) {
     51      }
     52      catch (OverflowException e) {
    5353        throw new PersistenceException("Overflow during element parsing while trying to reconstruct List<double>.", e);
    5454      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntArray2XmlSerializer.cs

    r3742 r4068  
    2020#endregion
    2121
    22 using System;
    23 using HeuristicLab.Persistence.Core;
    2422
    2523namespace HeuristicLab.Persistence.Default.Xml.Compact {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/IntList2XmlSerializer.cs

    r3742 r4068  
    2222using System.Collections;
    2323using System.Collections.Generic;
    24 using System;
    25 using HeuristicLab.Persistence.Core;
    26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2724
    2825namespace HeuristicLab.Persistence.Default.Xml.Compact {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberArray2XmlSerializerBase.cs

    r3945 r4068  
    2020#endregion
    2121
     22using System;
    2223using System.Collections;
     24using System.Collections.Generic;
    2325using System.Text;
    24 using HeuristicLab.Persistence.Interfaces;
    25 using System;
     26using HeuristicLab.Persistence.Auxiliary;
    2627using HeuristicLab.Persistence.Core;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Persistence.Auxiliary;
    29 using HeuristicLab.Tracing;
    30 using System.Collections.Generic;
    3129
    3230namespace HeuristicLab.Persistence.Default.Xml.Compact {
     
    5149        lengths[i] = a.GetLength(i);
    5250        nElements *= lengths[i];
    53       }     
     51      }
    5452      sb.EnsureCapacity(sb.Length + nElements * 3);
    5553      for (int i = 0; i < a.Rank; i++) {
     
    7169          }
    7270        }
    73       }     
     71      }
    7472      return new XmlString(sb.ToString());
    7573    }
     
    9290        Array a = Array.CreateInstance(this.SourceType.GetElementType(), lengths, lowerBounds);
    9391        int[] positions = (int[])lowerBounds.Clone();
    94         while (values.MoveNext()) {         
     92        while (values.MoveNext()) {
    9593          a.SetValue(ParseValue(values.Current), positions);
    9694          positions[0] += 1;
     
    107105          throw new PersistenceException("Insufficient number of elements while trying to fill number array.");
    108106        return (T)(object)a;
    109       } catch (InvalidOperationException e) {
     107      }
     108      catch (InvalidOperationException e) {
    110109        throw new PersistenceException("Insufficient information to rebuild number array.", e);
    111       } catch (InvalidCastException e) {
     110      }
     111      catch (InvalidCastException e) {
    112112        throw new PersistenceException("Invalid element data or meta data to reconstruct number array.", e);
    113       } catch (OverflowException e) {
     113      }
     114      catch (OverflowException e) {
    114115        throw new PersistenceException("Overflow during element parsing while trying to reconstruct number array.", e);
    115116      }
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Compact/NumberEnumeration2XmlSerializerBase.cs

    r3937 r4068  
    2020#endregion
    2121
     22using System;
    2223using System.Collections;
    2324using System.Text;
    24 using HeuristicLab.Persistence.Interfaces;
    25 using System;
     25using HeuristicLab.Persistence.Auxiliary;
    2626using HeuristicLab.Persistence.Core;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Persistence.Auxiliary;
    2928
    3029namespace HeuristicLab.Persistence.Default.Xml.Compact {
     
    5554        }
    5655        return (T)enumeration;
    57       } catch (InvalidCastException e) {
     56      }
     57      catch (InvalidCastException e) {
    5858        throw new PersistenceException("Invalid element data during reconstruction of number enumerable.", e);
    59       } catch (OverflowException e) {
     59      }
     60      catch (OverflowException e) {
    6061        throw new PersistenceException("Overflow during element parsing while trying to reconstruct number enumerable.", e);
    6162      }
Note: See TracChangeset for help on using the changeset viewer.