Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Persistence/4.0/Core/StorableConstructorAttribute.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Persistence/4.0/Core/StorableConstructorAttribute.cs
r14925 r14927 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Reflection; 23 24 24 namespace HeuristicLab.Persistence .Default.CompositeSerializers.Storable{25 namespace HeuristicLab.Persistence { 25 26 26 27 … … 34 35 /// </summary> 35 36 [AttributeUsage(AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)] 36 public sealed class StorableConstructorAttribute : Attribute { } 37 public sealed class StorableConstructorAttribute : Attribute { 38 public static bool IsStorableConstructor(ConstructorInfo constructorInfo) { 39 return Attribute.IsDefined(constructorInfo, typeof(StorableConstructorAttribute)); 40 } 41 } 37 42 }
Note: See TracChangeset
for help on using the changeset viewer.