- Timestamp:
- 07/22/10 00:44:01 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Bool2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Byte2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Char2XmlFormatter.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 22 using HeuristicLab.Persistence.Core; 24 23 using HeuristicLab.Persistence.Interfaces; 25 using System.Reflection;26 using System.Globalization;27 24 28 25 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/DateTime2XmlSerializer.cs
r3742 r4068 22 22 using System; 23 23 using HeuristicLab.Persistence.Core; 24 using HeuristicLab.Persistence.Interfaces;25 24 26 25 namespace HeuristicLab.Persistence.Default.Xml.Primitive { … … 35 34 try { 36 35 return new DateTime(long.Parse(x.Data)); 37 } catch (Exception e) { 36 } 37 catch (Exception e) { 38 38 throw new PersistenceException("Exception caugth while trying to reconstruct DateTime object.", e); 39 39 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Decimal2XmlSerializer.cs
r3742 r4068 21 21 22 22 using System; 23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 23 using System.Globalization; 27 24 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Double2XmlSerializer.cs
r3742 r4068 21 21 22 22 using System; 23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 23 using System.Globalization; 27 24 … … 54 51 } 55 52 56 57 53 54 58 55 59 56 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Float2XmlSerializer.cs
r3742 r4068 21 21 22 22 using System; 23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 23 using System.Globalization; 27 24 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Guid2XmlSerializer.cs
r3742 r4068 21 21 22 22 using System; 23 using System.Globalization; 23 24 using HeuristicLab.Persistence.Core; 24 using HeuristicLab.Persistence.Interfaces;25 using System.Text;26 using System.Text.RegularExpressions;27 using System.Globalization;28 25 29 26 … … 39 36 try { 40 37 return new Guid(t.Data); 41 } catch (FormatException x) { 38 } 39 catch (FormatException x) { 42 40 throw new PersistenceException("Cannot parse Guid string representation.", x); 43 } catch (OverflowException x) { 41 } 42 catch (OverflowException x) { 44 43 throw new PersistenceException("Overflow during Guid parsing.", x); 45 44 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Int2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Long2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/PrimitiveXmlSerializerBase.cs
r3742 r4068 20 20 #endregion 21 21 22 using HeuristicLab.Persistence.Interfaces;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 22 26 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/SByte2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/Short2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/SimpleNumber2XmlSerializerBase.cs
r3742 r4068 21 21 22 22 using System; 23 using System.Reflection; 23 24 using HeuristicLab.Persistence.Core; 24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 25 28 26 namespace HeuristicLab.Persistence.Default.Xml.Primitive { … … 46 44 try { 47 45 return (T)ParseMethod.Invoke(null, new[] { x.Data }); 48 } catch (Exception e) { 46 } 47 catch (Exception e) { 49 48 throw new PersistenceException("Could not parse simple number.", e); 50 49 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/String2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 22 using System.Text; 26 23 using System.Text.RegularExpressions; 27 using System.Globalization;24 using HeuristicLab.Persistence.Core; 28 25 29 26 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/System.Drawing/Bitmap2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 22 using System.Drawing; 23 using System.Drawing.Imaging; 27 24 using System.IO; 28 using System.Drawing.Imaging;29 using System.Text.RegularExpressions;30 using HeuristicLab.Persistence.Core;31 25 using HeuristicLab.Persistence.Default.Xml.Compact; 32 26 -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/TimeSpan2XmlSerializer.cs
r3742 r4068 22 22 using System; 23 23 using HeuristicLab.Persistence.Core; 24 using HeuristicLab.Persistence.Interfaces;25 using System.Text;26 using System.Text.RegularExpressions;27 using System.Globalization;28 24 29 25 … … 39 35 try { 40 36 return TimeSpan.Parse(t.Data); 41 } catch (FormatException x) { 37 } 38 catch (FormatException x) { 42 39 throw new PersistenceException("Cannot parse TimeSpan string representation.", x); 43 } catch (OverflowException x) { 40 } 41 catch (OverflowException x) { 44 42 throw new PersistenceException("Overflow during TimeSpan parsing.", x); 45 43 } -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/UInt2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 22 29 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/ULong2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive { -
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/Primitive/UShort2XmlSerializer.cs
r3742 r4068 20 20 #endregion 21 21 22 using System;23 using HeuristicLab.Persistence.Core;24 using HeuristicLab.Persistence.Interfaces;25 using System.Reflection;26 using System.Globalization;27 22 28 23 namespace HeuristicLab.Persistence.Default.Xml.Primitive {
Note: See TracChangeset
for help on using the changeset viewer.