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/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      }
Note: See TracChangeset for help on using the changeset viewer.