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/CompositeSerializers/Storable
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableAttribute.cs

    r3742 r4068  
    2121
    2222using System;
    23 using System.Linq;
    24 using System.Collections.Generic;
    25 using System.Reflection;
    2623using System.Text;
    2724
     
    3835    AttributeTargets.Field | AttributeTargets.Property,
    3936    AllowMultiple = false,
    40     Inherited = false)]   
     37    Inherited = false)]
    4138  public class StorableAttribute : Attribute {
    4239
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableClassAttribute.cs

    r3742 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Reflection;
    25 using System.Linq;
    2623
    27 namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable { 
     24namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
    2825
    2926  /// <summary>
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableClassType.cs

    r3742 r4068  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Reflection;
    25 using System.Linq;
    2622
    2723namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
     
    6258    /// </summary>   
    6359    AllFieldsAndAllProperties
    64   }; 
     60  };
    6561}
    6662
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableConstructorAttribute.cs

    r3742 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using System.Reflection;
    27 using HeuristicLab.Persistence.Core;
    2823
    2924namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
     
    3934  /// </summary>
    4035  [AttributeUsage(AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
    41   public sealed class StorableConstructorAttribute : Attribute {  }
     36  public sealed class StorableConstructorAttribute : Attribute { }
    4237}
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableHookAttribute.cs

    r3742 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using System.Reflection;
    2723
    2824namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
     
    3935    /// </summary>
    4036    BeforeSerialization,
    41    
     37
    4238    /// <summary>
    4339    /// States that this hook should be called after the storable
    4440    /// serializer hast complete re-assembled the object.
    4541    /// </summary>
    46     AfterDeserialization };
     42    AfterDeserialization
     43  };
    4744
    4845
     
    5249  /// </summary>
    5350  [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
    54   public sealed class StorableHookAttribute : Attribute {   
     51  public sealed class StorableHookAttribute : Attribute {
    5552
    5653    private readonly HookType hookType;
     
    7067    public StorableHookAttribute(HookType hookType) {
    7168      this.hookType = hookType;
    72     }   
     69    }
    7370  }
    7471}
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableMemberInfo.cs

    r3742 r4068  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using HeuristicLab.Persistence.Interfaces;
    26 using HeuristicLab.Persistence.Core;
    2723using System.Reflection;
    28 using HeuristicLab.Persistence.Auxiliary;
    2924using System.Text;
    3025
     
    5954      return ((PropertyInfo)MemberInfo).GetGetMethod(true).GetBaseDefinition().DeclaringType;
    6055    }
    61   } 
     56  }
    6257}
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableReflection.cs

    r3917 r4068  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using HeuristicLab.Persistence.Interfaces;
     25using System.Reflection;
    2626using HeuristicLab.Persistence.Core;
    27 using System.Reflection;
    28 using HeuristicLab.Persistence.Auxiliary;
    29 using System.Text;
    30 using System.Reflection.Emit;
    3127
    3228namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableSerializer.cs

    r3913 r4068  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using System.Reflection;
     26using System.Reflection.Emit;
     27using System.Text;
     28using HeuristicLab.Persistence.Core;
    2529using HeuristicLab.Persistence.Interfaces;
    26 using HeuristicLab.Persistence.Core;
    27 using System.Reflection;
    28 using HeuristicLab.Persistence.Auxiliary;
    29 using System.Text;
    30 using System.Reflection.Emit;
    3130
    3231namespace HeuristicLab.Persistence.Default.CompositeSerializers.Storable {
     
    8786        sb.Append("class has no default constructor and no [StorableConstructor]");
    8887      if (!StorableReflection.IsEmptyOrStorableType(type, true))
    89         sb.Append("class (or one of its bases) is not empty and not marked [Storable]; ");     
     88        sb.Append("class (or one of its bases) is not empty and not marked [Storable]; ");
    9089      return sb.ToString();
    9190    }
     
    123122      try {
    124123        return GetConstructor(type)();
    125       } catch (TargetInvocationException x) {
     124      }
     125      catch (TargetInvocationException x) {
    126126        throw new PersistenceException(
    127127          "Could not instantiate storable object: Encountered exception during constructor call",
     
    188188
    189189    private Dictionary<HookDesignator, List<StorableReflection.Hook>> hookCache =
    190       new Dictionary<HookDesignator, List<StorableReflection.Hook>>();   
     190      new Dictionary<HookDesignator, List<StorableReflection.Hook>>();
    191191
    192192    #endregion
     
    203203        accessorListCache[type] = storableMembers;
    204204        return storableMembers;
    205       }     
     205      }
    206206    }
    207207
     
    224224        return c;
    225225      }
    226     }   
     226    }
    227227
    228228    private Constructor GetDefaultConstructor(Type type) {
    229229      ConstructorInfo ci = type.GetConstructor(ALL_CONSTRUCTORS, null, Type.EmptyTypes, null);
    230230      if (ci == null)
    231         return null;     
     231        return null;
    232232      DynamicMethod dm = new DynamicMethod("", typeof(object), null, type);
    233233      ILGenerator ilgen = dm.GetILGenerator();
     
    242242          if (ci.GetParameters().Length != 1 ||
    243243              ci.GetParameters()[0].ParameterType != typeof(bool))
    244             throw new PersistenceException("StorableConstructor must have exactly one argument of type bool");         
     244            throw new PersistenceException("StorableConstructor must have exactly one argument of type bool");
    245245          DynamicMethod dm = new DynamicMethod("", typeof(object), null, type);
    246246          ILGenerator ilgen = dm.GetILGenerator();
     
    252252      }
    253253      return null;
    254     }   
     254    }
    255255
    256256    private void InvokeHook(HookType hookType, object obj) {
Note: See TracChangeset for help on using the changeset viewer.